Install latest version of Python from the official website.
We suggest to use Jupyter Notebook to edit and run Python code. You can install it via
pip3 install jupyterin your terminal/PowerShell.
How to run case studies in Python
We use Pipenv for Python dependency management. First, install it via
pipby running the following code in your terminal/PowerShell:
pip3 install pipenv
Create virtual environment and install required packages
Go to the
da_case_studiesfolder to create a virtual environment and install packages by running the following code in your terminal/PowerShell:
This installs the required Python version and packages stored in the
NOTE: Python environment was testet thoroughly only on Mac OS. Windows users might experience bugs, therefore we prepared
requirements.txt for all package==version we used in the notebooks and
requirements_pipenv.txt for all packages and dependencies used in the virtual environment.
Run Jupyter Notebook
To start a Jupyter Notebook in this virtual environment, go to the
da_case_studiesfolder and run the following code in your terminal/PowerShell:
pipenv run jupyter notebook
The jupyter environment should be opened on your default browser. You are good to go!