I am getting this error "The file at /home/ankit/.local/share/jupyter/runtime/nbserver-8468-open.html is not readable." while trying to open jupyter notebook in ubuntu22.04 terminal. I tried Edit the configuration file ~/.jupyter/jupyter_notebook_config.py and set: c.NotebookApp.use_redirect_file = False, But it didnt work in my case. Btw i am using the Notebook by Ctrl+clicking on the link in terminal
Asked
Active
Viewed 2,385 times
1 Answers
0
Snap installations of Firefox can't open files under paths starting with a ., and By default, Firefox created a shortcut under .local, for example, in my system:
file:///home/fccoelho/.local/share/jupyter/runtime/nbserver-123966-open.html
so all you need to do is to set these environmental variables in your ~/.bashrc file:
JUPYTER_DATA_DIR=/home/$USER/Public
JUPYTER_RUNTIME_DIR=/home/$USER/Public
or if you use fish shell, like me:
set -Ux JUPYTER_DATA_DIR /home/$USER/Public
set -Ux JUPYTER_RUNTIME_DIR /home/$USER/Public
directly in the terminal, and they will persist even after reboot.
fccoelho
- 141
- 1
- 9