En el cuaderno (notebook) de jupyter:
#Comprimir los archivos del curso 1
! tar cvf curso1.tar *
#Mirar el tamaño con que se creo
! ls -ls
Download Jupyter Workspace files
Download a single notebook
To download a single notebook:
- Open the notebook you want to download
- Click File
- Click Download As
- Choose a file format, then download your notebook.
Download all of your notebooks at the same time
To download all of your Jupyter Workspace files at the same time:
- Launch one of your notebooks from coursera.org
- In the upper right, click the Coursera logo
- You'll see a file view page that lists all Jupyter resources in your current course. Click the New, then select Terminal to open the system command line.
- You'll see a shell prompt open. In the shell prompt, type or paste the following statements:
- # Remove the previous archive, if it exists: rm -f ~/workspace.tar.gz && rm -f ~/work/workspace.tar.gz
- # Create a zipped archive of your workspace directory: tar -czf ~/workspace.tar.gz ~/work
- # Move the archive into the workspace directory so you can see it: mv ~/workspace.tar.gz ~/work/workspace.tar.gz
- Once the commands run successfully, click on the ‘Coursera’ logo again to return to the file view.
- In the file view, select workspace.tar.gz, then click Download. Your browser will download the workspace archive, which is yours to keep.
- Remove the archive file: rm ~/work/workspace.tar.gz*
Note: If your zip file is larger than 100MB, you will need to split it up into smaller files instead and download each of them, using the following commands:
- tar -czf - ~/work | split --bytes=100MB - ~/workspaces.tar.gz
- mv ~/workspace.tar.gz* ~/work/
No hay comentarios:
Publicar un comentario