0

I'm using the latest version of Jupyter lab on a Windows 10 64 bit machine inside Firefox. When I start the Jupyter lab (via cmd) the default working directory appears to be

c:/windows/system32

(i.e the folder tab on the left) which is a terrible place to be meddling with, at leat for me. I don't know why Jupyter lab starts there. I've installed Jupyter lab using cmd with administrator privileges. Is that why? Should I have it installed just for a user? (My machine has only one user;me). I tried changing the directory by using

jupyter notebook --generate-config

And inserted a path to my documents folder (in the path for kernels and notebooks line) , edited out the commentary ("#"). And when I restarted Jupyter lab nothing has changed. It shows the

c:/Windows/system32

as default directory which has so many windows folders and is too messy to deal with. Any solutions will be greatly appreciated. Thanks in advance:)

  • Does this answer your question? [How to change the Jupyter start-up folder](https://stackoverflow.com/questions/35254852/how-to-change-the-jupyter-start-up-folder) – krassowski Oct 23 '21 at 16:41
  • In particular you seem to be using the `notebook` instructions whereas you should probably use `server` as described in the second section (I now improved formatting in that answer to make it more obvious). – krassowski Oct 23 '21 at 16:43
  • Unrelated: have you tried to just change the current directory in the command line before starting JupyterLab via cmd? – krassowski Oct 23 '21 at 16:44
  • Please provide enough code so others can better understand or reproduce the problem. – Community Oct 23 '21 at 17:47
  • @krassowski Sorry I was using my phone to write the question, here is the clear details. I used `Jupyter lab --generate-config` to get the settings file. And this is how it looks now `c.ServerApp.root_dir = "C:/Users/name/Documents/Python" ` But no changes whatsoever. – Anoban Karunananthan Oct 24 '21 at 01:07
  • @krassowski Nope I didn't try to change the cwd in the cmd before opening Jupyter lab. And I did just now and **It worked** It's embarrassing but yeah that's very stupid of me. it's an obvious fix I didn't think of. I first changed the cwd by `C:\Windows\system32>cd C:\Users\name\Documents\Python` and then opened Jupyterlab in `C:\Users\name\Documents\Python>Jupyter lab` Thanks a lot. **That fixed it.** But still don't know why there isn't a way inside Jupyter to change the working directory. – Anoban Karunananthan Oct 24 '21 at 01:17

0 Answers0