Download all files in a path on Jupyter notebook server

前端 未结 7 687
日久生厌
日久生厌 2021-01-29 18:46

As a user in a class that runs Jupyter notebooks for assignments, I have access to the assignments via the web interface. I assume the assignments are stored somewhere in my per

7条回答
  •  故里飘歌
    2021-01-29 18:54

    The easiest way is to archive all content using tar, but there is also an API for files downloading.

    GET /files/_FILE_PATH_
    

    To get all files in folder you can use:

    GET /api/contents/work
    

    Example:

    curl https://server/api/contents?token=your_token
    curl https://server/files/path/to/file.txt?token=your_token --output some.file
    

    Source: Jupyter Docs

提交回复
热议问题