Software⏱️ 2 min read📅 2026-05-31

How to Fix: Cannot open new Jupyter Notebook [Permission Denied]

Jupyter Notebook Permission Denied Error on Ubuntu 16.04

Quick Answer: Run the command `sudo jupyter notebook --notebook-dir=/home/ubuntu/` to create a new notebook with elevated privileges.

You are encountering the 'Cannot open new Jupyter Notebook [Permission Denied]' error due to insufficient permissions or a missing configuration file. To resolve this issue, follow these steps:

✅ Best Solutions to Fix It

Method 1: Change Ownership of Jupyter Notebook Configuration File

  1. Step 1: Open a terminal and navigate to the jupyter notebook configuration directory using the command cd /home/ubuntu/.local/share/jupyter/notebook_secret.

Method 2: Run Jupyter Notebook as Superuser or Root User

  1. Step 1: Open a terminal and run the command jupyter notebook --notebook-dir=/home/ubuntu/.local/share/jupyter/notebook_secret to specify the configuration directory.

💡 Conclusion

By implementing these steps, you should be able to resolve the 'Permission Denied' error and successfully create new Jupyter Notebooks.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions