赞
踩
conda create -n py3610 python=3.6.10
pip install ipython
pip install ipython notebook
# 进入python交互shell,设置密码
>>> from IPython.lib import passwd
>>> passwd()
Enter password:
Verify password:
'sha1:0e60b78f0ebb:a82344edd0761be218058e7f74e96a1fe33d073d'
创建IPython notebook服务器
ipython profile create myserver
一般文件夹会默认生成在~/.ipython/profile_myserver/
这个文件夹下,可移动至自定义文件。
新建配置文件ipython_notebook_config.py
vim ~/.ipython/profile_myserver/ipython_notebook_config.py
# 将以下配置写入文件
c = get_config()
c.IPKernelApp.pylab = 'inline'
c.NotebookApp.ip='*'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'sha1:6369ff98b9ed:a82344edd0761be218058e7f74e96a1fe33d073d' # 第2步生成的sha1值
c.NotebookApp.port = 5233 # 端口号,设置一个没被占用的
jupyter notebook --config=/data/xrx/profile_myserver/ipython_notebook_config.py --allow-root
http://233.233.233.233:2333
输入密码即可
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。