Skip to content

watertap‐workshop

MarcusHolly edited this page Oct 9, 2025 · 12 revisions

WaterTAP Tutorial Installation Guide

Getting Started

1. Install Miniforge

Download Miniforge for your system from this website. The "latest" version is recommended.

Miniforge Download

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).

Miniforge Install

2. Opening a terminal window

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

Miniforge Prompt

3. Create the Conda environment

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

Create Environment

4. Activating the Conda environment

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:

Activate Environment with Highlight

Important

The environment will need to be reactivated every time you need to open another terminal window.

5. Cloning (downloading) the WaterTAP repository locally

Download ("clone") the WaterTAP repository from GitHub by running the following commands:

git clone https://github.com/watertap-org/watertap
cd watertap

Clone Repo

6. Installing the WaterTAP Python package and dependencies

Run the following command to install WaterTAP plus the dependencies needed to run the Jupyter notebook tutorials:

pip install --editable ".[notebooks]"

7. Installing the IDAES solvers

Run the following command to install the IDAES solvers:

idaes get-extensions --verbose

IDAES Solvers

8. Registering the WaterTAP Conda environment with Jupyter

Run the following command to configure Jupyter to recognize the current WaterTAP environment:

python -m ipykernel install --user --name watertap-workshop

9. Setting a password for Jupyter

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.

10. Starting the Jupyter server

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

Set Password and Launch

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.

11. Selecting the WaterTAP kernel to use to run the notebook

In the "Select Kernel" pop-up menu, select the watertap-workshop entry (which corresponds to the registration command in Step 8).

Set Kernel

Important

You might have to repeat this selection and/or ensure that the watertap-workshop kernel is being used when launching (opening) other notebooks.

12. Testing the installation

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.

Restart and Run

  • 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 Cells from the menu bar

Clone this wiki locally