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 ~