This is a workflow to show how to open jupyter notebook on CRI or RCC. There are some detailed instructions here, CRI’s instructions and More general instructions

Remote side

Make sure you’ve installed the required Python modules and packages.

$ ssh <username>

$ jupyter notebook --no-browser --port=XXXX

The default port will be 8888, and “–no-browser” is required because if you do not specify –no-browser –ip=, the web browser will be launched on the node and the URL returned cannot be used on your local machine.

If you set port=8889, the result should be like the following:

To access the notebook, open this file in a browser:
Or copy and paste one of these URLs:

Local machine

Open a new terminal and run the following command.

$ ssh -N -f -L localhost:YYYY:localhost:XXXX <username>

Select any port=YYYY which you haven’t used for other work.

Then open a browser, type in localhost=<YYYY> and copy and paste the token from the last step.
Finally, it should worked out.


Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The source code is licensed under MIT.

Suggest changes

If you find any mistakes (including typos) or want to suggest changes, please feel free to edit the source file of this page on Github and create a pull request.