Ali cloud configuration jupyter notebook

This article is used Ali cloud Ubuntu system, the main problem is a number of issues on the network settings on the configuration jupyter notebook problem, I do not understand the knowledge of the network structure, only the specific I use to write down what parameters, specific small partners want to know the reason I can study to explain why, and if not so read on.

1. The first is to buy their own routines Ali cloud

2. Open the routine proceeds linux (Ubuntu 18.04 LTS), arranged environmental python

There are two ways to configure the environment

  1. Configuration using the anaconda
  2. Use virtualenv configuration (this individual)
    above two are similar, see personal habits, current use have not encountered any difference.

3. Download jupyter, the specific operation may refer to

https://blog.csdn.net/langhailove_2008/article/details/79110949

4. After downloading open the configuration file is modified:

vim /root/.jupyter/jupyter_notebook_config.py 

The more easily lead to ambiguity is the configuration file:

c.NotebookApp.ip = 'xx.xxx.xx.xxx'            #即对外提供访问的ip
c.NotebookApp.port = 9527                     #即对外提供访问的端口
c.NotebookApp.open_browser = False            #False即启动不打开浏览器
c.NotebookApp.password = u'sha1:f8b5f5dbeca8:d1f5b93d5e787e4bf1bf4ad2c48c177ba79f55dd'   #这个就是上面生成的秘钥
c.NotebookApp.notebook_dir = u'/search/autotest/jupyter_dir' #即设置jupyter启动后默认的根目录

ip here using a private network ip

Here Insert Picture Description

When you sign in on a web page using the public network port configured to log ip plus

Here Insert Picture Description


Will be successful

Released four original articles · won praise 2 · Views 109

Guess you like

Origin blog.csdn.net/weixin_44132302/article/details/104083045