IPython notebook: Difference between revisions
From IIHE Wiki
Jump to navigationJump to search
Line 14: | Line 14: | ||
When launching the notebook, the system will create a dedicated server listening to localhost (default) running on a specific port. | When launching the notebook, the system will create a dedicated server listening to localhost (default) running on a specific port. | ||
Launch the notebook | Launch the notebook (it will choose an available port) | ||
<pre>ipython notebook | <pre>ipython notebook --pylab inline</pre> | ||
Create a tunnel from your machine (see output of previous command for PORT_NUMBER) | |||
<pre>ssh -L PORT_NUMBER:localhost:PORT_NUMBER uixx.iihe.ac.be</pre> | <pre>ssh -L PORT_NUMBER:localhost:PORT_NUMBER uixx.iihe.ac.be</pre> | ||
Revision as of 12:05, 5 October 2016
IPython is an interactive Python environment. Coupled with the "notebook" module, it provides a rich web interface.
Where is it
IPython notebook is available on the cluster in 2 environments : the custom build and CVMFS.
- To load from the custom build [deprecated] :
source /software/sources/latestEnvironment
- To load from CVMFS :
See IceCube Software Cluster#CVMFS
Launch a notebook
When launching the notebook, the system will create a dedicated server listening to localhost (default) running on a specific port.
Launch the notebook (it will choose an available port)
ipython notebook --pylab inline
Create a tunnel from your machine (see output of previous command for PORT_NUMBER)
ssh -L PORT_NUMBER:localhost:PORT_NUMBER uixx.iihe.ac.be
Open the tunnelled notebook in your browser by opening the url : http://localhost:PORT_NUMBER