How to open local file on Jupyter?

前端 未结 9 1728
星月不相逢
星月不相逢 2020-12-10 13:08

In[1]:

path=\'/Users/apple/Downloads/train.csv\'
open(path).readline()

Out[1]:

FileNotFoundError                         Tr         


        
9条回答
  •  [愿得一人]
    2020-12-10 13:40

    Install jupyter. Open terminal. Go to folder where you file is (in terminal ie.cd path/to/folder). Run jupyter notebook. And voila: you have something like this:

    Notice that to open a notebook in the folder, you can either click on it in the browser or go to address:

    http://localhost:8888/notebooks/name_of_your_file.ipynb
    

提交回复
热议问题