Open PhilipYip1988 opened 2 years ago
I am getting the following error:
Server error: Traceback (most recent call last): File "/snap/jupyter/6/lib/python3.7/site-packages/tornado/web.py", line 1699, in _execute result = await result File "/snap/jupyter/6/lib/python3.7/site-packages/tornado/gen.py", line 209, in wrapper yielded = next(result) File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/services/contents/handlers.py", line 112, in get path=path, type=type, format=format, content=content, File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/services/contents/filemanager.py", line 431, in get model = self._dir_model(path, content=content) File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/services/contents/filemanager.py", line 313, in _dir_model for name in os.listdir(os_dir): PermissionError: [Errno 13] Permission denied: '/media/abhishek/New Volume'
When I tried to generate the jupyter notebook configuration file, I could not find the c.NotebookApp.use_redirect_file = False in the python file. How should I solve this issue?
Actual Behavior
JupyterLab does not launch correctly in Ubuntu 22.04 LTS or Ubuntu 21.10 LTS as the browsers are snap packages and JupyterLab tries to access a file in the hidden .local folder which is not allowed for snap packages:
The file at file:///home/philip/.local/share.jupyter/runtime/jpserver-15136-open.html is not readable. It may have been removed, moved, or permissions may be preventing access.
ERR_ACCESS_DENIED
Expected Behavior
JupyterLab should launch and open in the snap preinstalled Firefox browser or Chromium snap browser.
This issue can be addressed by generating a Jupyter Notebook Configuration file in the terminal using:
Then changing the line 543 in the generated jupyter_notebook_config.py file to:
This should be the default setting when Anaconda is installed on Ubuntu as the JupyterLab and Jupyter Notebook IDEs should work out of the box with snap browsers (newer versions of Ubuntu will only have snap browsers).
Steps to Reproduce
Install Anaconda in Ubuntu 22.04 LTS or 21.10, Update Anaconda and launch jupyter-lab
Anaconda or Miniconda version:
Anaconda3-2021.11-Linux-x86_64.sh
Operating System:
Ubuntu 22.04 LTS Ubuntu 21.10 Feature Based
conda info
conda list --show-channel-urls