Home > database >  How do I change path directory in Jupyter lab?
How do I change path directory in Jupyter lab?

Time:02-02

How do I change initial path directory in Jupyter lab, when i want to get a file via "~/"?

screenshot

Have tried to generate config, and then change some parameters but only got confused.

CodePudding user response:

You can change file directory like that. Firstly you have to install package.

import shutil

File= r'C:\Users\ivan\Desktop\Somewhereidonotknow\example.csv'
Whereyou_want= r'C:\Users\ivan\Desktop\example.csv'

shutil.move(File, Whereyou_want)
  • Related