jupyter notebook与Jupyter Server中403: Forbidden问题

问题描述

我在Anconda里有两个环境,在安装新环境的jupyter notebook,在打开jupyter notebook后出现403的现象。以下是终端中出现的问题:

py:608: UserWarning: The Tornado web application does not have an 'identity_provider' defined in its settings. In future releases of jupyter_server, this will be a required key for all subclasses of `JupyterHandler`. 
For an example, see the jupyter_server source code for how to add an identity provider to the tornado settings: https://github.com/jupyter-=server/jupyter_server/blob/v2.0.0/jupyter_server/serverapp.py#L242;

最后出现

tornado.web.HTTPError: HTTP 403: Forbidden

原因分析:

我安装的notebook 6,在安装的过程中,同时安装相关依赖包Jupyter Server。(这里很奇怪,我之前老环境中的notebook 6安装时,没有安装Jupyter Server依赖包)。经过conda list查询发现,安装的Jupyter Server版本为2Jupyter Server 2notebook 6不兼容。所以需要将Jupyter Server 2降级。


解决方案:

Jupyter Server降级到小于2的版本,可以参考以下代码:

pip install jupyter-server==1.13.4
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值