python - How to change working directory in Jupyter Notebook? - Stack Overflow

PHOTO EMBED

Sun Dec 20 2020 11:41:28 GMT+0000 (Coordinated Universal Time)

Saved by @ghoziankarami

import os
os.getcwd()
Out[2]:
'/tmp'
In [3]:

os.chdir('/')
In [4]:


os.getcwd()
Out[4]:
'/'
In [ ]:
content_copyCOPY

https://stackoverflow.com/questions/35664972/how-to-change-working-directory-in-jupyter-notebook?rq