Download data from a jupyter server

前端 未结 4 1805
[愿得一人]
[愿得一人] 2021-02-18 17:49

I\'m using ipython notebook by connecting to a server I don\'t know how to download a thing (data frame, .csv file,... for example) programatically to my local computer. Because

4条回答
  •  我寻月下人不归
    2021-02-18 18:27

    Run this in separate cell in one of the notebooks:

    !tar cvfz zipname.tar.gz *
    

    To cover more folders up the tree, write ../ before the * for every step up the directory.

    tar cvfz zipname.tar.gz ../../*
    

    The file zipname.tar.gz will be saved in the same folder as your notebook.

    Also if files size is too large execute the following in same notebook block

    !split -b 200m allfiles.tar.gz allfiles.tar.gz.part
    

    Alternatively you can use this extension https://github.com/data-8/nbzip

提交回复
热议问题