Jupyter Notebooks: Difference between revisions
No edit summary |
No edit summary |
||
| (13 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[Category:IDEs]] | |||
[[Category:Remote Server Access]] | |||
[[Category:Department Servers]] | |||
Running Jupyter Notebooks is now possible with Open OnDemand. To run a Notebook, follow the steps below. | Running Jupyter Notebooks is now possible with Open OnDemand. To run a Notebook, follow the steps below. | ||
| Line 5: | Line 10: | ||
* https://ood.stat.cmu.edu/ | * https://ood.stat.cmu.edu/ | ||
2 - Click the '''Interactive Apps''' drop down menu and then select '''Jupyter | 2 - Click the '''Interactive Apps''' drop down menu and then select '''Jupyter Notebook.''' | ||
[[File:OOD Jupyter Menu Bar.png|left|frameless|719x719px]] | [[File:OOD Jupyter Menu Bar.png|left|frameless|719x719px]] | ||
| Line 20: | Line 25: | ||
3 - You will be taken to a new page where you | 3 - You will be taken to a new page where you can select options for the Notebook. Fill out the form as desired and then click the '''Launch''' button. Use [https://util.stat.cmu.edu/grafana/d/asjkldfbnvajdsfh213/leviathan-cluster?orgId=1&from=now-6h&to=now&timezone=browser Grafana] to help determine what server to use. Select one with low resource usage. | ||
'''Hours''' - The number of hours your Notebook will run. | '''Hours''' - The number of hours your Notebook will run. | ||
'''Server''' - The server to run your Notebook on. | '''Server''' - The server to run your Notebook on. | ||
'''Jupyter Notebook Path''' - The path the Notebook environment lives on. You can use the default path which has many statistics related Python packages preinstalled, or you can define your own Notebook environment. See below for details on how to set your own environment up. | |||
[[File:Jupyter Notebook Page.png|frameless|403x403px]] | |||
4 - You will be taken to another new page where the Jupyter Notebook | 4 - You will be taken to another new page where the Jupyter Notebook will load. Once it's ready, click '''Connect to Jupyter''' at the bottom. You will then be taken to a new tab with your Notebook session. | ||
[[File:NotebookSession.png|frameless| | [[File:NotebookSession.png|frameless|526x526px]] | ||
=== Custom Jupyter Notebook Environment === | === Custom Jupyter Notebook Environment === | ||
To build a custom Notebook environment, you can use a Python package | To build a custom Notebook environment, you can use a Python package manager such as Momba or Python's built in virtual environments. This example will cover Python virtual environments. | ||
# Declare the virtual Python environment. | # Declare the virtual Python environment. | ||
#* ''python3 -m venv /path/to/your/jupyter_env'' | #* ''python3 -m venv /path/to/your/jupyter_env'' | ||
# Activate the virtual environment. | # Activate the virtual environment. | ||
#* ''source / | #*''source /path/to/your/jupyter_env/bin/activate'' | ||
# Install the Jupyter Notebook application to the new Python virtual environment. | # Install the Jupyter Notebook application to the new Python virtual environment. | ||
#* ''pip install notebook'' | #* ''pip install notebook'' | ||
To use your own Jupyter Environment, replace the default path above in step 3 for Jupyter Notebook Path. | To use your own Jupyter Environment, replace the default path above in step 3 for Jupyter Notebook Path. | ||
Latest revision as of 19:10, 11 August 2026
Running Jupyter Notebooks is now possible with Open OnDemand. To run a Notebook, follow the steps below.
1 - Log in to Open OnDemand.
2 - Click the Interactive Apps drop down menu and then select Jupyter Notebook.

3 - You will be taken to a new page where you can select options for the Notebook. Fill out the form as desired and then click the Launch button. Use Grafana to help determine what server to use. Select one with low resource usage.
Hours - The number of hours your Notebook will run.
Server - The server to run your Notebook on.
Jupyter Notebook Path - The path the Notebook environment lives on. You can use the default path which has many statistics related Python packages preinstalled, or you can define your own Notebook environment. See below for details on how to set your own environment up.
4 - You will be taken to another new page where the Jupyter Notebook will load. Once it's ready, click Connect to Jupyter at the bottom. You will then be taken to a new tab with your Notebook session.
Custom Jupyter Notebook Environment
To build a custom Notebook environment, you can use a Python package manager such as Momba or Python's built in virtual environments. This example will cover Python virtual environments.
- Declare the virtual Python environment.
- python3 -m venv /path/to/your/jupyter_env
- Activate the virtual environment.
- source /path/to/your/jupyter_env/bin/activate
- Install the Jupyter Notebook application to the new Python virtual environment.
- pip install notebook
To use your own Jupyter Environment, replace the default path above in step 3 for Jupyter Notebook Path.