马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
创建情况并安装jupyter
conda create --name medkg python=3.10
source activate medkg
pip install jupyter
安装完成后,输入jupyter notebook --generate-config
输入ipython,进入python
In [2]: from jupyter_server.auth import passwd
In [3]: passwd(algorithm=‘sha1’)
返回
记着暗码,并输入exit();退出
编辑刚才的config文件 vim /root/.jupyter/jupyter_notebook_config.py
在最末了插入
c.ServerApp.ip = ‘0.0.0.0’
c.ServerApp.password = ‘’#填写刚才天生出来的谁人暗码字符串
c.ServerApp.open_browser = False
c.ServerApp.port = 6006
c.ServerApp.allow_remote_access = True
输入!wq,回车,生存,
返回原来的控制台,重新输入jupyter notebook --allow-root
同时打开
|