Download CSV from an iPython Notebook

后端 未结 6 1034
一个人的身影
一个人的身影 2020-12-02 23:17

I run an iPython Notebook server, and would like users to be able to download a pandas dataframe as a csv file so that they can use it in their own environment. There\'s no

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 23:39

    My simple approach to download all the files from the jupyter notebook would be by simply using this wonderful command

    !tar cvfz my_compressed_file_name.tar.gz *

    This will download all the files of the server including the notebooks.

    In case if your server has multiple folders, you might be willing to use the following command. write ../ before the * for every step up the directory.

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

    Hope it helps..

提交回复
热议问题