KeyError: 'allow_remote_access' in jupyter notebook in one environment

Dim*_*ims 3 conda jupyter-notebook

I can run jupyter notebook without activating environment. Also I can run in under environment py35 I made. But when I try to run it under py36, it fails with

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:
Run Code Online (Sandbox Code Playgroud)

This can't be solved with editing file in ~/.jupyter, because it works in other envs.

小智 5

只需使用正确的IP而不是*手动传递--ip选项即可:

jupyter notebook --ip="0.0.0.0"
Run Code Online (Sandbox Code Playgroud)

或更改您的配置文件

详细信息:https : //github.com/jupyter/docker-stacks/issues/718