Hello, I’m asking help because I have the stupiest problem ever:
I just got a new computer (macbook) and downloaded Anaconda. But when I went on JupyterLab, I tried to open the folder Desktop. It asked me if I agreed to give access to this folder… AND I MISSCLICKED on NO… Now the desktop folder has disappeared and I can’t find a way to have it back!
Can someone tell me how to fix that?
Thank you so much !!
I’m having a similar problem now on Sequoia 15.1.1
I start up the jupyter notebook server (7.0) and I am not able to see my “Documents” folder.
When I browse it it using the URL, I see this error:
[I 2024-12-03 08:52:41.445 JupyterNotebookApp] Refusing to serve hidden directory, via 404 Error
[E 2024-12-03 08:52:41.462 ServerApp] Could not open static file ''
The problem is indeed almost certainly related to the now intrusive file security settings in OSX 15. But I do not see how to fix this since Terminal already has access and there is no button to add another “application”:
But that setting is specific to the individual executable file.
A better solution is if the notebook server could trigger the mac popup that prompts the user (for the one millionth time…) to allow an application to access “Documents”. My guess is that this is done at the API level by the application trying to open a file/folder even if it is “hidden” (which is how is seems to appear to the notebook server via whatever API it is using).
It seems like the notebook server is hard coded to not try this, leaving mac uses without any way to easily grant access to their “Documents” folder.
OK, I’m going mad. Seems like a crazy macos bug more than anything, but I’ll document it here in case someone else runs into this.
I decided to just open a terminal and run ipython in it. At first, I was denied access to “Documents”, glob saw nothing there.
Then I tried downloads. And then I got a popup asking to give “Terminal” permissions to Downloads. I chose not to. I therefore was also not able to glob downloads. I then tried globbing Documents again. And for some crazy reason, that worked! But then downloads was blocked. I then when to “Files and Folders” in security, folded out the “Terminal” option, and then saw that Documents was enabled but downloads not. I then activated downloads, and now my notebook server can access everything fine.
Illogical madness. but seems to be some kind of crazy fix.
Here is my screenshot so you believe at least part of my insane story: