-
Open the terminal via
New>Terminal
-
Check the location of jupyter notebook, in this case is
/tf
:
ls -l /tf
Notes
: Some files are linked, so you have to manually copy those files in order to download the original files. You can use the cp
command to copy them. For example: cp originalfilelocation /tf/filename.ori
- Set the location and filename:
location=/tf
filename=C1W3_WGAN_GP
- Create a python requirements
pip freeze > $location/requirements.txt
- Compress and move the file into the jupyter homepage directory/folder as set in
location
(no. 3)
- If the file is
less than 100MB
:
tar -czf $filename.tar.gz $location && mv $filename.tar.gz $location
- If the size is
more than 100MB
, split them into multiple compressed files:
tar -czf - $location | split --bytes=100MB - $filename.tar.gz && mv $filename.tar.gz* $location
- Now you can download it from jupyter homepage.
Download the file(s) by selecting it (square) then clicking on
Download
.
-
If you split the file, join them by using
cat
command:cat filename.tar.gz* > filename.tar.gz
-
In Windows use
type
command which works similarly to Unixcat
:type filename.tar.gz* > filename.tar.gz
type C2W1_Assignme.tar.gza* > C2W1_Assignme.tar.gz
For example:

Open the terminal:
Now, you can download via jupyter notebook homepage: