
Jupyter can be deployed on the SCC in a number of ways. We recommend use of the Jupyter OnDemand Interactive App in combination with your preferred python environment (i.e. Python or Conda).
Sections
Jupyter OnDemand Interactive App
This is our recommended way to use and launch Jupyter. To launch Jupyter from SCC OnDemand, you will need to start a Jupyter Notebook Interactive App and load your preferred python environment (i.e. Python or Conda).
- Open a browser and login to https://scc-ondemand.bu.edu with your BU credentials.
- Click Interactive Apps > Jupyter Notebook.
- Specify in the Interface field if you’d like to run a
notebook
orlab
. The default isnotebook
. - Specify in the the Working Directory field the directory for your files. The default is your home directory.
- Click one of the Python environment options below for further instructions within that package manager:
Jupyter OnDemand Desktop
Use Jupyter within an Interactive Desktop session for long-running notebooks where you want to close your browser. When launched as an Interactive App as described above, it will stop running if your browser is closed.
- Click one of the Python environment options below for further instructions within that package manager:
Jupyter Batch Jobs
To run a Jupyter Notebook as a batch job there are two options:
- Option 1: Convert Notebook to Python Script
Convert notebook to a.py
file that can be run as a batch job. This can be done within a batch job or beforehand.[rcs@scc1 ~] jupyter nbconvert --to script NOTEBOOK_NAME.ipynb [rcs@scc1 ~] python NOTEBOOK_NAME.py
- Option 2: Execute as Notebook File
It’s also possible to execute the notebook directly from the.ipynb
file. Results are saved within the notebook exactly the way they would be if run from within Jupyter.[rcs@scc1 ~] jupyter nbconvert --to notebook --execute NOTEBOOK_NAME.ipynb
Last updated: April 23, 2024