I'm getting a common error, but the chmod
solutions I've found don't seem to be working.
When I create a Jupyter notebook through terminal, by running jupyter notebook
, on Ubuntu 19.10, I get this error I'm sure many are familiar with:
The file at file:///home/vurnhat/.local/share/jupyter/runtime/nbserver-25715-open.html is not readable. It may have been removed, moved, or file permissions may be preventing access.
I've manually pasted the link into Firefox and it works. Is there any way I can change some setting in my Chromium browser to get it to work there?
I had the same issue. I don't know what the problem is with Chrome, but a quick "fix" for me was to run:
so I don't have to copy-paste the link in Firefox.
The issue is chromium being a snap app in Ubuntu, if the URL is used instead of the html file, the issue is resolved.
jupyter notebook --generate-config
will output the directory for config file, edit it and add this linec.NotebookApp.use_redirect_file = False
Generate a jupyter config file in terminal using commands:
open the script jupyter_notebook_config.py in the directory
/.jupyter and uncomment the line 531 : Set
c.NotebookApp.use_redirect_file = True
toc.NotebookApp.use_redirect_file = False
. It will work.Your issue is probably be related to Chromium being a snap app. According to this Stack Overflow answer:
This snap issue is also mentioned in this Ask Ubuntu answer:
Also see this relevant thread in the snapcraft forum: Can browsers open local files?
Summarizing, this is probably an issue due to Chromium being a snap application. Your options are:
Copy and paste one of the links starting with
http://localhost:8889/?token=
orhttp://127.0.0.1:8889/?token=
in Chromium to open your notebook in it.Use another non-snap browser as default.
Use the command mentioned by Salvatore Lampitelli to open the notebook in the specified non-snap browser.