0

I recently bought a new M1 Pro Macbook with macOS Monterey. Migrated all my stuff from my previous Macbook Air over to it.

I opened my Jupyter Notebook via Anaconda but now, it cannot detect my Desktop files and folders (the Desktop folders are on the extreme right of the screenshot):

enter image description here

I have also went to System Preferences -> Security & Privacy -> Privacy -> Files and Folders to check on the access and permissions, but nothing seems amiss:

enter image description here

Attaching the Jupyter terminal boot-up here as well just for reference:

enter image description here

Can anyone assist? Thank you!

user12575866
  • 107
  • 1
  • 4

2 Answers2

0

Jupyter can't cd outside of your Users/user path. However, you can change that folder in the jupyter_notebook_config.py. Look for the c.NotebookApp.notebook_dir entry to point to the desired working directory. You can create this config file from your shell via

jupyter notebook --generate-config
Peter
  • 10,959
  • 2
  • 30
  • 47
0

Small configuration is required to view these files on jupyter notebook.

  1. Get the path of jupyter_notebook_config.py file. Below mentioned command can be used to find it - jupyter notebook --generate-config

  2. open the file and search for c.NotebookApp.notebook_dir this might be configured to default value i.e. ''

    Reconfigure it and update path of directory contain code files, like - c.NotebookApp.notebook_dir = /Volumes/Technical/Python

Nitin
  • 13
  • 4
  • didn't work ... – Raksha Dec 21 '22 at 23:51
  • Have you resolved this? I recently did the same and moved all my files over to M1 Mac. I have all existing notebooks in a folder and can save new notebooks and see those, but old ones are not visible in the folder via Jupyer? – ctrl-alt-delete Jan 22 '23 at 22:25