Remote link Ipython Notebook configuration

Source: Internet
Author: User
Tags jupyter jupyter notebook

Tool posts

(Yesterday in order to test spark performance, I intend to run some data analysis, remote installation Ipython accidentally under the home RM-RF *, really ... due five hours ago ... To make it worse, we just forgot to push the code to the GitHub this time. To fill up a job while crying.

Recently ran the data analysis, because the habit of local run Ipython notebook analysis, but the data are on the server, every time the SCP is very troublesome, looking for a bit far Chenglian to the server Ipython notebook method. Here is a document, but the version is older, I have followed the current version of the Ipython configuration, the main reference is this.

First on the remote server, install the Ipython

Anywhere on the server, enter Ipython, and then follow the following method to get a hash password and save it
From Notebook.auth import passwd
passwd ()

To the directory ~/.jupyter/, create the default jupyter_notebook_config.py, if not created by default, direct vim. Then type in the file, or enter Jupyter notebook--generate-config

c = get_config ()
c.notebookapp.ip= ' * '
c.notebookapp.password = U ' ... ' # here Enter the hash password C generated in step two
. Notebookapp.open_browser = False
c.notebookapp.port = 1224 # Guess why it's this number:)

The remote configuration is complete, move below to the folder that remote server will access, enter Ipython notebook--no-browser--port=1224

Server-side Ipython and startup, the following is the local area connection. Enter Ssh-n-f-l 127.0.0.1:1314:127.0.0.1:1224 user@address, which is to say that the local 1314 port is connected to the 1224 port on the server.

Any browser, address bar localhost:1314, and then you will see an input password. (I'd say I've been using 123123123?) And then it's done.

There is a more direct way, after the 3rd step, since the Ipython notebook on the server has been started, it can be directly in the browser to open the address:1224 method, the same interface.

Online is to see also useful Pem method, but I have to catch due, the next time to write ~

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.