I just discovered how to fix a really annoying issue with Jupyter on Ubuntu I’ve had for a while. Whenever I run jupyter notebook, instead of my browser opening right to the notebook page, I would get this:

Access to the file was denied
The file at … is not readable. It may have been removed, moved or file permissions may be preventing access.
ERR_ACCESS_DENIED

Then I’d have to go back into the terminal, and click the link there.

Here’s an easy fix*:

  1. Generate a jupyter config file: jupyter notebook --generate-config
  2. Set c.NotebookApp.use_redirect_file = False

And you’re done! Next time you run jupyter notebook, it should open in your browser without any issues:

*credit for this goes to kosii on StackOverflow

Leave a comment