docker开启远程访问_Ubuntu安装Jupyter notebook——开启远程访问
生活随笔
收集整理的這篇文章主要介紹了
docker开启远程访问_Ubuntu安装Jupyter notebook——开启远程访问
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
一. Ubuntu下安裝jupyter notebook
1. 使用Anaconda安裝
conda install jupyter notebook2. 使用pip安裝
pip install jupyter notebook二. Jupyter notebook 配置
1. 生成配置文件
jupyter notebook --generate-config2. 創(chuàng)建密碼
使用python中的passwd()創(chuàng)建密碼,終端輸入ipython打開ipython并輸入:
In [1]: from notebook.auth import passwd In [2]: passwd() Enter password: ****** Verify password: ****** Out [2]: 'sha1:...'復制Out [2] 顯示的密碼('sha1:...' 包括引號)。
3. 修改jupyter notebook的配置文件
- 打開配置文件
- 在該文件中做如下修改或直接在文件尾端添加:
4. 啟動jupyter notebook
終端輸入:
jupyter notebook或使用nohup后臺運行 jupyter notebook:
nohup jupyter notebook >~/jupyter.log 2>&1 &5. 遠程訪問jupyter notebook
本地瀏覽器輸入http://(服務器地址):(配置文件中設定的端口); 假設服務器地址為192.168.1.129,配置的端口為8888,這里的瀏覽器輸入地址應為http://192.168.1.129:8888; 即可訪問jupyter notebook。
總結
以上是生活随笔為你收集整理的docker开启远程访问_Ubuntu安装Jupyter notebook——开启远程访问的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python判断是否是小写字母_pyth
- 下一篇: eclipse lombok插件安装_如