This guide provides an alternative way to set up a development environment for PyPSA-Earth using Docker containers. This method is particularly useful for users who are not familiar with programming or Python, or who prefer not to install Python directly on their local machine. Using Docker simplifies setup by creating a self-contained environment for PyPSA-Earth.
Ensure Docker is installed on your system. Follow the instructions for your operating system:
- Windows: Docker for Windows
- Linux: Docker for Linux
- MacOS: Docker for MacOS
You can use the link here to install Visual Studio Code on your operating system. Ensure to select the most compatible file for your operating system.
You will also need GitHub Desktop to clone the PyPSA-Earth repository. Install GitHub Desktop for your operating system from here.
-
Open GitHub Desktop.
-
Go to File > Clone Repository.
-
Paste the following URL in the URL field:
https://github.com/pypsa-meets-earth/pypsa-earth.git
-
Click on Clone.
-
Choose the location where you want to save the repository on your local machine.
-
After cloning, click on Current Branch: main and select
devContainers
. -
Click on Open in Visual Studio Code.
- Open the cloned repository in VSCode.
- Click on the icon located at the bottom left corner of the VSCode window.
- Select Reopen in Container.
- Wait for the container to build and for the repository to open in the container.
Once these steps are completed, your development environment will be ready, and you can start using PyPSA-Earth in the Docker container.
You are now all set up! You can use the development environment to explore PyPSA-Earth and make modifications as needed within the Docker container.
You can start running the tutorial here