Basic usage of iPython and notevook, ipythonnotevook
1 install Ipython
Pip install ipython
2 Basic Notebooke usage
Start ipython and use ipython
Start notebook to use ipython notebook
3 Remote use of Ipython notebook configuration method 3.0 create remote service
Syntax: ipython profile create <name of the server you want to create>
E.g .:
Ipython profile create myserver
In this case, the cursor will output the location of the generated file. Remember this location.
3.1 configure openssl Authentication
Openssl req-x509-nodes-days 365-newkey rsa: 1024-keyout mycert. pem-out mycert. pem
The generated sha value is output. Remember to output the sha value.
To facilitate future use: in this case, you can move the mycert. pem certificate to the ipython notebook folder and put related items together.
mv mycert.pem .ipython
3.2 modify the configuration file
C = get_config () # Kernel configc. IPKernelApp. pylab = 'line' # if you want ploader support always # Notebook configc. notebookApp. certfile = U'/home/XXX /. ipython/mycert. pem' ## authentication Location c. notebookApp. ip = '*' c. notebookApp. open_browser = Falsec. notebookApp. password = u'sha1: xxxx' # sha value output for authentication # It's a good idea to put it on a known, fixed portc. notebookApp. port = 9999
3.3 restart ubuntu and start the ipython notebook Server
ipython notebook --profile=nbserver3.4 remote connection to Ipython NoteBook
Open a local browser to access the remote noteBook address. Remember that the port number is 9999.