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.

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s