Ceci est une ancienne révision du document !
Jupyter Notebook (IPython)
This tutorial explains the setup to run an Jupyter (IPython) Notebook on a computing node on the Lumiere cluster at the MesoFC Supercomputer Center and forward the port encrypted with SSH to the browser on a local laptop.
How to?
The idea is to wrap Jupyter Notebook in SGE job by calling
jupyer_notbook command. The job is executed in a computing node and we connect to the Notebook using SSH Tunel.
- Within
WORKdirectory run the commandjupyer_notbook - Check if the job is running
$ qstat - Look at jupyter_$jobid.log SGE output file, if no errors the output looks like:
Starting Jupyter Notebook on port 26580 on the node1-30 server. ========================================================================= IF NO ERRORS SHOWN BELOW, AND BEFORE USING THE PROPOSED URL You need to setup an SSH tunnel from your local machine. SSH tunnel command: ssh -NL 26580:node1-30:26580 kmazouzi@mesoshared.univ-fcomte.fr ========================================================================= jupyter-notebook is /Softs/lumiere/languages/python/2.7.11/bin/jupyter-notebook [W 23:16:23.940 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended. [I 23:16:23.954 NotebookApp] Serving notebooks from local directory: /Work/Users/kmazouzi [I 23:16:23.955 NotebookApp] 0 active kernels [I 23:16:23.956 NotebookApp] The Jupyter Notebook is running at: [I 23:16:23.956 NotebookApp] http://[all ip addresses on your system]:26580/?token=79ac43411d945585a2b5bbddc1d3150aac8e3c0305f37603 [I 23:16:23.957 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 23:16:24.024 NotebookApp] Copy/paste this URL into your browser when you connect for the first time, to login with a token: http://localhost:26580/?token=79ac43411d945585a2b5bbddc1d3150aac8e3c0305f37603