Python Forum
How to change working directory in Jupyter Notebook? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: How to change working directory in Jupyter Notebook? (/thread-20684.html)



How to change working directory in Jupyter Notebook? - rajeev1729 - Aug-25-2019

How to change working directory in Jupyter Notebook?
tried these all but not work.

Open cmd prompt (or Anaconda Prompt), then type 'jupyter notebook --generate-config' and press enter.
This auto create a file 'jupyter_notebook_config' in the 'C:\Users\username.jupyter\' folder.


RE: How to change working directory in Jupyter Notebook? - ThomasL - Aug-25-2019

Using jupyter notebooks you need to change into the directory you want to use before calling "jupyter notebook"

I recommend using jupyter lab https://jupyterlab.readthedocs.io/en/stable/


RE: How to change working directory in Jupyter Notebook? - perfringo - Aug-25-2019

It's too ambiguous "How to change working directory in Jupyter Notebook?".

If you want to change it within notebook then you use built-in line magic %cd in same manner as you would use it in terminal.