搭建jupyter服务器

版权声明:本文为博主原创文章,未经博主允许不得转载。~~~~ https://blog.csdn.net/qq_29719097/article/details/79948046
ubuntu@py-model01br-p002:~$ conda -V
conda 4.3.30
ubuntu@py-model01br-p002:~$ ls
anaconda3  Anaconda3-5.0.1-Linux-x86_64.sh  nohup.out
ubuntu@py-model01br-p002:~$ cd /opensource/
ubuntu@py-model01br-p002:/opensource$ ls
ubuntu@py-model01br-p002:/opensource$ jupyter notebook --generate-config
Writing default config to: /home/ubuntu/.jupyter/jupyter_notebook_config.py
ubuntu@py-model01br-p002:/opensource$ ipython
Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49) 
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from notebook.auth import passwd

In [2]: passwd()
Enter password: 
Verify password: 
Out[2]: 'sha1:e16fd48e3a14:bb617d0105acb5210414b81f631688d19fe79a21'

In [3]: quit
ubuntu@py-model01br-p002:/opensource$ vim /home/ubuntu/.jupyter/jupyter_notebook_config.py
ubuntu@py-model01br-p002:/opensource$ jupyter notebook --config=/home/ubuntu/.jupyter/jupyter_notebook_config.py
[I 09:26:53.556 NotebookApp] JupyterLab alpha preview extension loaded from /home/ubuntu/anaconda3/lib/python3.6/site-packages/jupyterlab
JupyterLab v0.27.0
Known labextensions:
[I 09:26:53.557 NotebookApp] Running the core application with no additional extensions or settings
[I 09:26:53.560 NotebookApp] Serving notebooks from local directory: /opensource
[I 09:26:53.560 NotebookApp] 0 active kernels 
[I 09:26:53.560 NotebookApp] The Jupyter Notebook is running at: http://0.0.0.0:8117/
[I 09:26:53.560 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 09:27:23.641 NotebookApp] 302 GET / (10.10.0.39) 0.57ms
[I 09:27:24.030 NotebookApp] 302 GET /tree? (10.10.0.39) 1.04ms
[I 09:27:34.860 NotebookApp] 302 POST /login?next=%2Ftree%3F (10.10.0.39) 1.15ms
[I 09:28:17.571 NotebookApp] Creating new directory in 
[W 09:28:17.572 NotebookApp] Permission denied: Untitled Folder
[W 09:28:17.572 NotebookApp] 403 POST /api/contents (10.10.0.39) 1.69ms referer=http://10.20.51.124:8117/tree?
[I 09:29:59.559 NotebookApp] Creating new directory in 
 jupyter notebook --config=/home/ubuntu/.jupyter/jupyter_notebook_config.py
阅读更多

没有更多推荐了,返回首页