Topics Map > Software
Run MATLAB in Jupyter
Use MATLAB® Integration for Jupyter® to run MATLAB in Jupyter environments.
Rocky8: MATLAB Integration for Jupyter
To run a JupyterLab with MATLAB integrated on DiscoverIT-supported compute server, you will need to start 2 separate SSH sessions. These instructions work when starting on a Mac or Linux workstation. Instructions for Windows will be available.
-
- In your first ssh session in its own window (a tmux session here is suggested to keep the session running):
- Load the module:
module load apptainer/jupyter-matlab-r2024b
- Start your own Jupyter Lab
jupyter lab --no-browser --ip=127.0.0.1
- Note the output. It will tell you the options you need for the later steps.
- Load the module:
- In a new window, run the SSH command it gave you. It will look like:
ssh -L XXXX:localhost:XXXX username@hostname.discovery.wisc.edu
whereXXXX
is […] the port the Jupyter server is running at on the server.
Look for the port in the output for server URLs: http://127.0.0.1:8889/lab?token=e53c5251f6155120fcbb3... - Now you can simply open JupyterLab by visiting http://localhost:8889/lab?token=e53c5... on your preferred browser.
Note: Please append the /lab?token=e53c5... string to match the one generated when the server was started.
- In your first ssh session in its own window (a tmux session here is suggested to keep the session running):