Downloading the full lab (including data)

Well, if you know how to use linux commands, you can implement this yourself. Just add a cell to the notebook (the “+” on the toolbar) and then you can include linux shell commands by using so-called “bang escapes”: just precede each shell command with an exclamation point “!” (bang).

Try this:

!pwd
!ls -lR

That will show your current working directory and recursively list the files in the assignment. I tried and they don’t include the zip command in the Docker image, but they do include tar. For example you could add this command:

!tar chzvf assignment.tgz .

That will give you a compressed tar file with all the files recursively included. Then you just download that and then unpack it locally.

To unpack the file (if you are in a linux or other Unix flavored environment) you would do this with a directory name of your own choosing of course:

mkdir PyTorch_C1_M3
cd PyTorch_C1_M3
tar xzvf ../assignment.tgz
5 Likes