jupyter 笔记本“c.NotebookApp.certfile =”错误

时间:2021-02-03 15:32:36

标签: jupyter config

我正在尝试在 Windows 10 上打开 jupyter 笔记本服务器。 但发生错误如下图。我不明白..

jupyter_notebook_config.py

c = get_config()
c.NotebookApp.ip = '192.168.219.177'
c.NotebookApp.port = 8888
c.NotebookApp.password = u'argon2:$argon2id$v=19$m=10240,t=10,p=8$wBD+Gu+NqxXuNCD+hf3Jqw$AKcHN5Zuq+TYjYhWUI+9/A'
c.NotebookApp.open_browser = False
c.NotebookApp.notebook_dir = 'd:\study\jupyter'
c.NotebookApp.certfile = u'c:\users\doo\ssl\mycert.pem'
c.NotebookApp.keyfile = u'C:\Users\doo\ssl\mykey.key'

错误代码

[E 22:39:05.760 NotebookApp] Exception while loading config file C:\Users\doo\.jupyter\jupyter_notebook_config.py
        config = loader.load_config()                                                                                         File "C:\Users\doo\anaconda3\lib\site-packages\traitlets\config\loader.py", line 616, in load_config                      self._read_file_as_dict()                                                                                             File "C:\Users\doo\anaconda3\lib\site-packages\traitlets\config\loader.py", line 648, in _read_file_as_dict               exec(compile(f.read(), conf_filename, 'exec'), namespace, namespace)                                                  File "C:\Users\doo\.jupyter\jupyter_notebook_config.py", line 1259                                                        c.NotebookApp.certfile = u'c:\users\doo\ssl\mycert.pem' 

1 个答案:

答案 0 :(得分:0)

我无法正确看到错误消息。

SyntaxError: (unicode error) 'unicodeescape' 编解码器无法解码位置 2-3 中的字节:截断的 \uXXXX 转义

我解决了这个问题。