Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downloads folder from JupyterLab

I'd like to download a folder of pickle files from Jupyterlab (running on a google cloud instance) and I'm unable to find a way to do so. Apparently, downloading individual files is permitted but I have about 500 individuals pickle files in my folder to download and so would take while to do that manually.

As you can see in the menu below (when right click on the folder I want to download) I manage to install a "download folder as archive" extension but for some reasons the resulting zip format is unreadable locally. I'm sure there must be a way of downloading folder easily from Jupyterlab and any help would be highly appreciated. Thank you

enter image description here

like image 467
Alex Martin Avatar asked May 10 '20 11:05

Alex Martin


People also ask

Where does JupyterLab save files?

On Linux and other free desktop platforms, these runtime files are stored in $XDG_RUNTIME_DIR/jupyter by default. On other platforms, it's a runtime/ subdirectory of the user's data directory (second row of the table above).

How do I access files in JupyterLab?

Opening FilesThe file browser is in the left sidebar Files tab: Many actions on files can also be carried out in the File menu: If playback doesn't begin shortly, try restarting your device.


2 Answers

I finally find a solution by zipping the folder using the following command:

    zip -r example.zip original_folder

And it worked.

like image 152
Alex Martin Avatar answered Sep 28 '22 09:09

Alex Martin


On you notebook try this

!zip -r example.zip original_folder

by adding ! you tell the notebook that you wanna execute external commands

like image 24
Mohamed BOUSSAKSSOU Avatar answered Sep 28 '22 09:09

Mohamed BOUSSAKSSOU