Reputation: 11905
I'm trying to launch Jupyter with a base directory being the root of my second hard drive. I used to be able to do that just fine with Ipython 3.x until I upgraded to the latest version.
If I cd to D:\ and type jupyter notebook --debug
the end of the trace I get is:
[I 12:15:14.792 NotebookApp] Refusing to serve hidden directory, via 404 Error
[D 12:15:14.792 NotebookApp] Using contents: services/contents
[W 12:15:14.813 NotebookApp] 404 GET /tree (::1) 23.00ms referer=None
[D 12:15:15.062 NotebookApp] 304 GET /custom/custom.css (::1) 152.00ms
I've tried running the command from an elevated command prompt but to no avail.
How can I run jupyter at the root of my D:\ drive on Windows?
Upvotes: 10
Views: 10918
Reputation: 1525
I am able to see hidden files and folders by launching jupyter lab
from the command line with the following command:
jupyter lab --ContentsManager.allow_hidden=True
To do this I:
Anaconda3 Prompt (anaconda3)
from the Windows menu.Enter.
The default web browser loads with the jupyter lab
interface and I can see hidden files and folders. Specifically I am using the to see the hidden .aws
directory.
Upvotes: 2
Reputation: 43
a few days ago i had same problem . When you arrange files sharing rules in windows machine , python files can be being hidden unknowingly while you want to hide another files , too .
if jupyter files are in the hidden files like i mentioned above , it has solved by doing this steps;
After doing these steps , this problem had solved in my computer.
Upvotes: 0
Reputation: 534
I ran into this on a Ubuntu 16.04 setup. I thought I'd post this in case it helps someone out. Turns out its a permissions thing for me. in my case, the original permissions were 755 (read,write,exec for the owner; read, exec for the group and read, exec for guests) I changed this setting to 666 which is rw for everyone and it threw the error reported above. By changing it back to the original settings, everything worked fine. I know this is a windows complaint, but I'd suggest it may be permissions related to the directory you story your scripts in (your working directory)
Upvotes: 0
Reputation: 1160
As kinverarity advised, any attempt to use the root folder directly will say that it's refusing to serve a hidden directory. If you absolutely must serve from the root folder (but can change how you try to run it), then what you will need to do is to create a symlink folder pointing to the root, so you run it from what it thinks is a folder but it serves files from the root. The following command creates a notebooks symlink:
mklink /D notebooks \
cd into the symlink folder and run jupyter and the error goes away but it's still serving the files from root.
I should point out that you want to make sure you don't have any processes that iterate recursively over all folders on the drive (unless they skip symlinks), otherwise they'll iterate into the notebooks folder, its notebooks folder, etc, and will never complete because it'll get stuck in a loop.
Upvotes: 3
Reputation: 497
I've been unable to run it in the root of any drive, but it works fine from any subdirectory.
Upvotes: 10