Basic usage of iPython and notevook, ipythonnotevook

Source: Internet
Author: User

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.        
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.