0
点赞
收藏
分享

微信扫一扫

javaWebssh药品进销存信息管理系统myeclipse开发mysql数据库MVC模式java编程计算机网页设计

云岭逸人 2024-03-05 阅读 10

第一步:创建python虚拟环境

conda create -n py3610 python=3.6.10

第二步:安装ipython

pip install ipython
pip install ipython notebook

第三步:创建 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 # 端口号,设置一个没被占用的

第四步:启动ipython notebook

jupyter notebook --config=/data/xrx/profile_myserver/ipython_notebook_config.py --allow-root

第五步:浏览器远程访问

http://233.233.233.233:2333
输入密码即可

第六步:Pycharm访问

在这里插入图片描述
在这里插入图片描述

举报

相关推荐

0 条评论