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.

    1. 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.

    2. 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

      where XXXX 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...

    3. 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.


Keywords:
Jupyter, Matlab 
Doc ID:
149772
Owned by:
Emile T. in DiscoverIT
Created:
2025-04-09
Updated:
2025-04-10
Sites:
Discovery Building IT