Jupyter Notebook: Access to the file was denied

在Ubuntu20.04中卸载火狐浏览器,改成Chromium浏览器出现这种问题,解决办法如下:

1、创建配置文件:

jupyter-notebook --generate-config

2、编辑刚才创建的配置文件jupyter_notebook_config.py,找到c.NotebookApp.use_redirect_file,设置为False。 

vi .jupyter/jupyter_notebook_config.py
c.NotebookApp.use_redirect_file = False

 

     3、一般情况下上面两步就可以解决问题,如果还不行就重装JupyterLab。

jupyter lab clean --all
pip3 install jupyterlab --force-reinstall


版权声明:本文为yfhuang12原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。