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.
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.
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
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.
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.
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'
[ ]: