码迷,mamicode.com
首页 > 其他好文 > 详细

How to edit codes on the server which runs jupyter notebook using your pc's bwroser

时间:2018-04-13 20:34:35      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:visit   res   tree   host   bubuko   ken   cal   install   hat   

If you don‘t use jupyter, you may have to edit your source codes on your pc and upload them to your server.

1.install ipython

sudo apt -y install ipython ipython-notebook

2.jupyter

python -m pip install jupyter

3.start a new screen session

screen -U -S jupyter

4.run jupyter and make it visible to all machines on your LAN, simply instruct it to listen on all interfaces:

jupyter notebook --ip=‘*‘

5.then it will ask you to copy an address to your pc browser

http://localhost:8888/tree?token=***

6.replace the localhost with the server ip and we can see

 技术分享图片

Enabling the password looks unnecessary. So I didn‘t do that.

Next time you log in, you can just visit

http://server_ip:8888/

which requires the token.

Use ssh to connect to your server and run

jupyter notebook list

It will display the token

 

How to edit codes on the server which runs jupyter notebook using your pc's bwroser

标签:visit   res   tree   host   bubuko   ken   cal   install   hat   

原文地址:https://www.cnblogs.com/cxxszz/p/8822687.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!