Installing Python Tutorials

1. Install Git for Windows

Install git for windows. This package is required to download and run the python notebooks.

Open gitforwindows.org and download the latest version.

Use the installation wizard with the recommended settings to complete installation.

|win\_setup\_install\_git.png|

[Return to Top]

2. Install Anaconda or Miniconda

Download the latest version of the Miniconda from the Conda.io website:

Use the installation wizard with the recommended settings to complete installation.

|win\_setup\_miniconda.png|

After installation is complete, launch the Anaconda Prompt (Miniconda3) from the Start Menu or by typing anaconda in the Cortana toolbar

|win\_setup\_launch\_miniconda.png|

The miniconda terminal window will open

|win\_setup\_miniconda\_terminal.png|

[Return to Top]

3. Install Jupyter Lab

In the miniconda terminal window, run

pip install jupyterlab

to install the Jupyter environment for executing the python notebooks. It may take a couple minutes to collect and install all the required packages.

|win\_setup\_install\_jupyter.png|

[Return to Top]

4. Install GridAPPSD-Python

In the Miniconda terminal window, download and install GridAPPSD-Python by running

pip install git+https://github.com/GRIDAPPSD/gridappsd-python.git@develop#egg=gridappsd

to download the GridAPPSD-Python library and required packages.

|win\_setup\_install\_gapps\_python.png|

GridAPPSD-Python and all dependencies should have been automatically added to your anaconda path after completion.

[Return to Top]

5. Download Python Training Notebooks

In the miniconda terminal window, clone the python notebooks by running git clone https://github.com/GRIDAPPSD/gridappsd-hackathon to download the python training notebooks.

|win\_setup\_install\_notebooks.png|

By default, the notebooks will be saved in the directory C:\Users\username\gridappsd-hackathon

Close the miniconda terminal

[ ]:

If running on a remote server (e.g. AWS cloud or university / laboratory server farm), start the notebooks by running

jupyter notebook --port 8890 --no-browser --ip='0.0.0.0'

[ ]: