windows服务端 配置jupyter notebook远程连接

安装 jupyter

conda activate learning
pip install jupyter
jupyter notebook --generate-config	#生成配置文件
(learning) C:\Users\Administrator>python
Python 3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from IPython.lib import passwd
>>> passwd()
Enter password:#设置一个登陆密码
Verify password:#重复输入登陆密码
'sha1:*************************************'

修改默认配置文件

windows默认配置文件地址在C:\Users\Administrator\.jupyter\jupyter_notebook_config.py
用记事本打开这个python文件
添加如下几行命令:

c.NotebookApp.ip = '*'                    #设置远程所有ip可访问
c.NotebookApp.open_browser = False        #关闭浏览器
c.NotebookApp.password=u'sha1:******************************'      #输入上面生成的密码
c.NotebookApp.port = 8181                 #随意设置一个端口号
c.NotebookApp.allow_remote_access = True  #允许远程连接

保存配置并激活

conda activate learning
jupyter notebook --config C:\Users\Administrator\.jupyter\jupyter_notebook_config.py

远程登录

客户端输入http://服务器IP:端口号

http://192.168.1.10:8181
  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值