-
Notifications
You must be signed in to change notification settings - Fork 93
watertap‐workshop
Download Miniforge for your system from this website. The "latest" version is recommended.

Run the downloaded installer to start the guided installation process. When prompted to choose options, it is OK to use the default (i.e. already selected) value(s).

Open a terminal window by searching for and running the "Anaconda Prompt (Miniconda3)" program.

At the terminal prompt, run the following command to create the Conda environment that will be used for the tutorial:
conda create --yes --name watertap-workshop -c conda-forge python=3.11 git
Run the following command to activate the newly created watertap-workshop environment:
conda activate watertap-workshop
The name of the active environment should be shown at the bottom left before the prompt:

Important
The environment will need to be reactivated every time you need to open another terminal window.
Download ("clone") the WaterTAP repository from GitHub by running the following commands:
git clone https://github.com/watertap-org/watertap
cd watertap

Run the following command to install WaterTAP plus the dependencies needed to run the Jupyter notebook tutorials:
pip install --editable ".[notebooks]"
Run the following command to install the IDAES solvers:
idaes get-extensions --verbose

Run the following command to configure Jupyter to recognize the current WaterTAP environment:
python -m ipykernel install --user --name watertap-workshop
Run the following command to set a password for the Jupyter server:
jupyter server password
The password doesn't need to be highly secure, since the Jupyter server runs entirely on your local machine, cannot be accessed from the network, and will only be active for the duration of this tutorial.
Run the following command to start the Jupyter server from the current directory, specifying the introductory tutorial as the starting notebook:
jupyter lab tutorials\introduction.ipynb

Depending on your system, a browser window should open up, showing a password prompt. Enter the password chosen in the previous step. After confirming, the Jupyter Lab interface should be shown.
In the "Select Kernel" pop-up menu, select the watertap-workshop entry (which corresponds to the registration command in Step 8).

Important
You might have to repeat this selection and/or ensure that the watertap-workshop kernel is being used when launching (opening) other notebooks.
As a way to quickly test if the installation process above was successful, you can run the introduction.ipynb notebook automatically (i.e. not interactively). To do so, select Kernel > Restart Kernel and Run All Cells from the menu bar.

- The notebook should take a few minutes to finish running
- While running, the kernel indicator near the top-right corner will become "busy" (solid gray circle); when finished, it will switch back to the "idle" state (white with gray border)
- If there are no errors, all the cells of the notebooks should be populated with various outputs
- If there are errors, error messages (typically in red color) will be shown instead
- To "reset" the notebook to the initial empty state and run it again, select
Kernel > Restart Kernel and Run All Cellsfrom the menu bar