Jupter notebook download doesn't work

Hi,

Since the material in the notebooks will not be available after completion, per class notes I am trying to download the programming assignment notebook. But I run into the following issues

  1. Downloading as PDF just gives error
  2. Downloading as .html doesn’t download the images
  3. The slides.html download also doesn’t download properly, only the first slide seems to download.

Would appreciate if we can get the PDF download to work for future reference of the work.

Thanks,
Sanjay.

Hi @stibrewal ,

Not all options from the Download list are available. However, if you want a copy of the assignment, the following file formats do work:
1)notebook,
2)html,
3)markdown

1 Like

There’s also a topic about this on the DLS FAQ Thread that’s worth a look.

Thank you @Kic for the quick response.

I looked through the topic on DLS FAQ as well. However when I download the .html version the figures (diagrams) in the Notebook don’t download. And Pdf download just gives error and doesn’t do anything. I am on Macbook Pro M1.

Did you follow the link on the FAQ Thread to this thread? The point of that is that it downloads all the files, not just the notebook, so that you could potentially execute the notebook in another environment.

Hi Paul,
That thread you linked doesn’t work for DLS Course1 week4. I have tried it myself.
It seems that the only way to download a file is by selecting the ‘Download As’ option.

Hi @stibrewal ,
The reason for the missing diagrams is because the images are kept in the images sub-directory under the file tab. Currently there is no option to download the images.

Hi, Kin.

I just tried the “Download All Files” method for both DLS C1 W4 A1 and A2 and both worked fine for me:


In both cases, I got the usual Files.zip zip file with the whole tree of files.

Did you get some kind of error when you tried that? Or was the zip file incomplete in some way? If so, we should report that to the course staff or Coursera.

Regards,
Paul

1 Like

Hi @paulinpaloalto,

Here are my steps -

  1. Downloaded and unzipped the the two directories for Week 4
  2. started jupyter with “jupyter lab”
  3. Navigated to the unzipped directory and opened one of the .ipynp file
  4. The file comes up fine but with no figures
  5. I checked that the unzipped folder has an images directory that has the required images

For some reason when the file is opened it is not reading the images from the local folder.

Not sure how to solve this.

Sanjay.

One thing to check is whether the “current working directory” of your notebook is set correctly when you start it up.

Add a code cell and use linux shell commands to figure that out:

!pwd

will show the current working directory. And then this will show the contents of whatever directory is current:

!ls -l

If it is not as expected, then you need a cell early in the notebook that does something like:

!cd the/correct/directory

The syntax of starting a line with “!” (exclamation point) says that the rest of the line is a linux shell command.

Note that there may also be ways to affect the working directory in terms of how you invoke Jupyter, but that is beyond the scope of the courses here. If you want to play games like this, then you need to read the documentation for Jupyter and other associated tools.

Hi Paul,

I didn’t get those pages as yours shown here. There was no error message, the screen display just got redrawn. So I am not sure what is going on here.

Hi @Kic,

Please use the updated instructions.

Best,
Mubsi