Jupyter Notebook I can't access any folders

I had Python installed on my computer, and then I also installed Anaconda. Afterward, I encountered some path problems, so I uninstalled both and reinstalled Anaconda. Additionally, I installed nbextensions for Jupyter Notebook. Now, when I open Jupyter Notebook, I can’t access any folders, and if I manage to enter one, it shows as empty and doesn’t allow me to go back. Furthermore, when I try to create a file, it doesn’t permit it. I installed nbextensions for syntax prediction. My computer runs on Windows.

You are overcomplicating things. Address getting your base install of Anaconda working with navigating directories before you start adding in extensions.

Are your path names super long? See here.

Are you running as administrator? See above that last reference.

Were things working before? Do you know version numbers you had when it worked vs. now? And by cannot access folder. Where do you mean? Is it all folders or just certain ones? Is OneDrive involved here? Are %cd and ls still work fine in the cells in your running .ipynb file?

Other options to look into:


And if you want to discuss extensions later, we’d need details…
What nbextensions do you mean and what versions of Jupyter are involved? If you are using old extensions, unless you are using additional things added after installing Anaconda, installing old nbextensions isn’t going to help you as a lot of them no longer work with current Jupyter that is included by default in Anaconda.

1 Like

I understand, first I can uninstall Anaconda and start over if needed.

  1. My directory names are not too long.

  2. I am not running the CMD as an administrator. I encounter the same problem whether I run Jupyter Notebook directly from CMD by typing jupyter notebook or from Navigator.

  3. When I had two versions of Python installed, Jupyter Notebook was working, but I had issues installing TensorFlow because pip wasn’t working correctly. In fact, when I typed python, it couldn’t find Python. I don’t remember my previous versions, but my current versions are Jupyter Notebook 6.5.7, and CMD shows Python 3.12.3 when I type python --version.

  4. Inaccessible directories: all of them. When I open Jupyter Notebook and click on any folder that appears, I encounter the same issue it says Server error: Forbidden.

  5. I don’t know what OneDrive, %cd, and ls are, so I couldn’t understand the question. Sorry for that.

  6. Extensions can stay, as long as the application works for me.

IMPORTANT:
7) When I type where python in CMD, it shows two Pythons: one is the Anaconda3 one (I added the path manually). The other is .....AppData/microsoft/windowsapps/python.exe. I think this is related to the first Python I downloaded, but I can’t enter that folder and delete python.exe. All my problems started with these.

Maybe it is different on Windows but that ‘I added the path manually’ sounds like already a signal there was a problem because I thought the Anaconda Distribution installation took care handling the path.

I’m pretty sure now that the Anaconda Distribution now comes with Jupyter Notebook 7 something and so that doesn’t seem consistent with you saying that you uninstalled and reinstalled the Anaconda Distribution earlier.

Are you using the Anaconda Navigator to launch Jupyter?

Yes I use anaconda navigator for lunching jupyter notebook

I also try cmd but nothing change

I can send paths screenshot or something you want.

I’m running out of things to suggest.
No extensions are on in your browser?
Did you try a different browser?

Did you do a fresh reload of the web page? Here reported a similar thing two years ago and it just went away after a few days. That seemed like it might have been a browser issue then and so that is why I suggest trying a hard refresh or another browser.

You should definitely try though using %cd and ls and pwd from in your cells to navigate your filer hierarchy and see what that tells you. If you don’t know what those do, you should look into it. To get you started with that, I’ll share that %cd is the magic version of ‘change directory’ you need to use inside a running Jupyter Notebook to move down your hierarchy. So do %cd <folder name> where the folder is below your working directory that the kernel starts out in.

I updated Jupyter Notebook from the command line, and now I’m using version 7.2.1, which seems to be working fine, but I get a message when opening files like it opens the files but can’t find python i think
Error Starting Kernel
[WinError 2] The system cannot find the specified file.


am I have to delete one of these paths.

extension I try to download:
The nbextension part is gone. What I want is just for it to predict and suggest the code I will write, like suggesting import when I type im. Is there an easy way to do this?

That seems ill-advised for now. Be cautious. Moves such as that could make the situation worse. The Python on the command line isn’t necessarily going to affect the one used in Jupyter, especially when Anaconda is involved. Anaconda is isolated when things are done correctly.

There’s lots of stuff on how you need to connect ipykernel to your Jupyter. See the two top scoring answers here.

This feature is built in to current Jupyter Notebook 7+ and JupyterLab. Demonstrate by going here and starting a binder session. Open a new notebook in that session and then give it time to set everything up upon the initial start up (can take a minute or two) and then start typing imp and press tab and you get the completion offered. Or first start typing imp and then press tab twice in quick succession for it to put import automatically. (Because you are using Jupyter Notebook 7.2, I wanted to point you at that demo, but it currently won’t launch for me and so I pivoted to a working one. YMMV.)

There’s also fancier extensions now that allow you to connect to AI and so it is important to get it working first and then you can add extensions. The extensions in Jupyter Notebook 7+ and current JupyterLab get installed by conda these days or you use the manager in your running JupyterLab.

1 Like

Thank you very much, everything is working right now.

Can you share what helped so that it helps others?
The last thing you asked was about deleting a path?

I used the link you share for ipykernel

now it is working And I am using tab key for predict syntax

1 Like

OneDrive!! After my onedrive randonly disconnected, I got the " Token authentication is enabled" page, even though i have been doing nothing different for the past 2 years and never updated anything. Not sure why it does that. any thoughts???