This article describes the basic usage of iPython and notevook.
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 <你要创建的服务器名>
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 enable ipython notebook server ipython notebook -- profile = nbserver3.4 to remotely connect to Ipython NoteBook. open a local browser and access the remote noteBook address. remember that the port number is 9999.
For more information about the basic usage of iPython and notevook, see The PHP Chinese website!