Jupyter Notebooks: Difference between revisions
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
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. | ||
1 - Log in to '''Open OnDemand. | 1 - Log in to '''Open OnDemand.''' | ||
* https://ood.stat.cmu.edu/ | * https://ood.stat.cmu.edu/ | ||
Revision as of 18:56, 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.