OnDemand app for serving Jupyter notebooks out of your local path, so you can conveniently manage Jupyter extensions according to your preferences.
News: This repository has been updated to ensure compatibility with the FAS RC Rocky upgrade in June 2023.
You must have a conda/mamba environment with jupyter lab/notebook installed inside. According to the FASRC documentation, here is a step by step guide about how to set one:
-
Connect to the RC VPN and log in to the RC cluster via SSH:
-
In your ssh session, Load the Python module, which will automatically load the Mamba module:
module load python/3.10.9-fasrc01
Confirm that the modules are loaded by running module list:
Currently Loaded Modules: 1) Mambaforge/22.11.1-fasrc01 2) python/3.10.9-fasrc01
-
Configure your
.condarc
file to install environments in the lab tier 1 storage for better performance:mkdir /n/hekstra_lab/people/<user_name>/envs
Add the following block to your
~/.condarc
file. Create the file if it doesn't exist:envs_dirs: - /n/hekstra_lab/people/<user_name>/envs
-
Create a Mamba environment with a custom name:
mamba create -n <env_name> python=3.10
Note: For GPU-accelerated deep learning frameworks, refer to the documentation on setting up compatible environments: pytorch, tensorflow
-
Activate the newly created environment, install Jupyter Lab (required), and any additional packages you need:
mamba activate <env_name> pip install jupyterlab pip/mamba/conda install <other_packages_you_need>
- First, you need to enable the FAS RC VPN
- Create a new folder in your home directory on the RC cluster
mkdir ~/.fasrcood/dev
- Navigate to the Open OnDemand app page
- Click on the
</> Develop
dropdown (top right) and go to "My SandBox Apps (Development)" - Click on "New App" (top left)
- Click on "Clone Existing App"
- Fill in some suitable directory name. This will determine the name of the directory inside
~/fasrc/dev
used for this project - Paste the following into the "Git remote" dialog box
https://github.com/Hekstra-Lab/fasrc-ood-jupyter.git
- Click "Submit"
- Go to the vdi interactive session
- Click on "CustomizedJupyter" (left bottom, Interactive Apps Sandbox section)
- Fill out the form and click submit
When the notebook is ready, a "Connect to Jupyter" button will appear.
- General instructions for the RC VPN are available in the FASRC docs
- Linux specific instructions using
openconnect
here