jupyter-notebook - KeyError:一个环境中的jupyter笔记本中的“allow_remote_access”
问题描述
我可以在不激活环境的情况下运行 jupyter notebook。py35
我也可以在我制作的环境下运行。但是当我尝试在下运行它时py36
,它失败了
Traceback (most recent call last):
File "/opt/anaconda3/envs/py36/lib/python3.6/site-packages/traitlets/traitlets.py", line 528, in get
value = obj._trait_values[self.name]
KeyError: 'allow_remote_access'
During handling of the above exception, another exception occurred:
这无法通过在 ~/.jupyter 中编辑文件来解决,因为它适用于其他环境。
解决方案
只需使用正确的 IP 手动传递选项 --ip 而不是 *:
jupyter notebook --ip="0.0.0.0"
或更改您的配置文件
推荐阅读
- node.js - 请求的资源上不存在“Access-Control-Allow-Origin”标头。CORS plicy 已阻止对 XMLHttpRequest 的访问
- r - R中的奇怪分类和eval中的错误(predvars,data,env):object [...] not found error(没有错字!)
- anylogic - 如何在离散事件模拟中的 Anylogic 中绘制代理在图上行驶的距离?
- reactjs - 试图将反应轮播更改为类组件
- python-3.x - 如何使用python从正态分布中提取100个等距数字
- xml - 问题 for-each / xsl:value-of select="." fmpxml结果
- asp.net - 序列化一个字典
使用 GraphQL 和 Hot Choclate 到动态 JSON - android - 带有图标的 Android 下拉选项菜单
- terminal - Zsh Shell 在初始启动期间花费异常长时间
- python-3.x - 在 Azure + Flask + Python3 + GIT LFS 上部署生成'错误:外部过滤器'git-lfs smudge %f'失败-1'