-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for using Jupyter notebooks (#1155)
* Remove unneeded notebook tests reqs and move scipy to parameter_sweep * Remove requirement for Python<3.8 backport * Create notebooks extras_require target and add it to requirements-dev * Add first version of Jupyter notebooks docs * Fix grammar * Add document to index * Fix spacing issue in code blocks * Fix auto-numbered list
- Loading branch information
1 parent
3744d2c
commit a7e3f32
Showing
5 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ How To Guides | |
how_to_use_EDB | ||
how_to_use_ui_api | ||
how_to_contribute_development | ||
notebooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _notebooks: | ||
|
||
How to run WaterTAP with Jupyter notebooks | ||
========================================== | ||
|
||
This guide describes the supported methods to work with WaterTAP using Jupyter notebooks. | ||
|
||
Local (developer) installation | ||
------------------------------ | ||
|
||
.. important:: These instructions assume that a WaterTAP developer environment has already been configured, as described in e.g. :ref:`install-dev`. | ||
|
||
#. Activate your WaterTAP environment. If your environment has a name different from ``watertap-dev``, replace ``watertap-dev`` with the actual name wherever applicable: | ||
|
||
.. code-block:: shell | ||
conda activate watertap-dev | ||
#. Navigate to the directory where your local clone of the WaterTAP repository is located | ||
|
||
#. Run the following command to register the currently active WaterTAP environment as a Jupyter kernel. This will create a dedicated WaterTAP kernel that's selectable in the Jupyter web interface, ensuring that the notebook code is run in the correct Python environment where WaterTAP is available. | ||
|
||
.. code-block:: shell | ||
python -m ipykernel --user --name "watertap-dev" | ||
#. Then, start the Jupyter server from the current directory, navigate to the desired notebook using the file browser, and launch it | ||
|
||
#. If prompted to select a kernel, select ``watertap-dev`` from the menu. Otherwise, ensure ``watertap-dev`` appears in the kernel box in the top-right corner of the notebook interface | ||
|
||
Online using Binder.org | ||
----------------------- | ||
|
||
(Coming soon) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ pre-commit | |
pylint | ||
astroid | ||
# Defer to setup.py contents | ||
-e .[dev] | ||
-e .[dev,notebooks] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters