anaconda的虛擬python環境配置jupyter
#進入虛擬環境後安裝nb_conda
conda install nb_conda
#配置端口號
jupyter notebook --generate-config
#依據生成的文件,進行vim修改,添加下面內容
vi /root/.jupyter/jupyter_notebook_config.py
"""
c.NotebookApp.allow_remote_access = True #允許遠程訪問
c.NotebookApp.ip='*' #所有人訪問
c.NotebookApp.open_browser = False
c.NotebookApp.port =9991 #可自行指定一個端口, 訪問時使用該端口
"""
#配置訪問密碼,登錄的時候使用的是手動輸入的密碼
jupyter notebook password
cat /root/.jupyter/jupyter_notebook_config.json
#運行jupyer
jupyter notebook --allow-root #如果是root用戶使用--allow-root,反之則不用