Jupyter Notebook Download

I am unable to download the Jupyter Notebook to my local machine, a new empty tab is opened when I click on “File” => “Download As”…
Or is there a GitHub location where we can find the codes?

1 Like

hi @Impact

  1. Open your assignment/lecture notebook.Click Menu
  2. Go to top left, “File → Open…”
  3. When the page opens, select the checkbox next to your assignment/lecture notebook name and then click “Shutdown”.
  4. When it shutdowns, select the checkbox next to your assignment/lecture notebook name and then click “Download”. I hope this help
1 Like

Hello Jacques_Asinyo.

Thank you for the info and support. I have downloaded the notebooks using your advice.
I really appreciate your kindness.

There is also an easy way to download not just the notebook but all the associated files. Please see this topic on the DLS FAQ Thread.

1 Like

Hi Paul,

Correct me if I am wrong but I don’t see “Lab Files” link/tab for short course notebooks.

Rgds,
MCW

1 Like

Sorry, I am not familiar with how the “Short Courses” work. Those notebooks are a different style. You’ll need to consult with someone who knows how those courses work.

Did you try the method that Jacques posted earlier on this thread? That should get you the ipynb file, then the question is whether running it requires more than that.

HI Paul,
No issue and thanks.

I can download the short courses notebook no issue but just no luck with the data used for the
notebook. I am just curious if download option like DLS “Lab Files” is available, then it will make
my day for downloading the entire content.

Anyway, no issue and thanks for reply and help in the past too.

Cheers,
MCW

You can try “File → Open” from one of the notebooks and then see if you see other files. With the normal assignment notebooks from DLS or MLS, that puts you in a “File Navigation” view of the assignment and there is typically a whole tree of accompanying files, including python utility routines and data files. But I don’t know if the short course notebooks will let you do that. In DLS (for example), you can individually to “Download” from the “File Explorer” view, but that is a nuisance because there are typically lots of files. The newer “Lab Files” method is way better.

But if you can get the “Explorer” view, you might be able to get a terminal with a linux shell and use “zip” to create a file with all the files. Well, assuming there is the “Explorer” view in the first place of course. :nerd_face:

Yes the “terminal” option would be very handy but no unfortunately no avail for short courses.

The other option may be just to run a linux command in the notebook cell to tar up all those files
instead, :wink: Will give that a go and see.

Cheers,
MCW

That’s a great point! You should be able to run linux shell commands in code cells in the notebook by prefixing them with “!” (bang!). So add a new code cell and try this:

!pwd
!ls -lR

You are running in a Docker image, so you’re at the mercy of what binaries they put into the file system. E.g. try this:

!whereis zip
!whereis tar

to see if you have access to zip or tar.

Yes, I am able to tar czvf all the files I need into .tgz and download all contents now.
It always pays to brainstorm here with you and all others!!!

Cheers,
MCW

1 Like

Cool! That’s great news that you found a solution.

In ShortCourses Beta GUI there is no “Lab Files” Button that the DLS FAQ Thread mentions (for the Coursera GUI). Thus the method that @Jacques_Asinyo explains seems to be the only alternative.

Got the same issue here, with Firefox under Ubuntu 22.04. As far as I can tell it is a regression, didn’t use to happen.

could you be more specific? I have been unable to utilize this approach.

:slight_smile:

This is a pretty old thread, so there is no guarantee that the previous participants are still listening, except for the mentors.

Did you see my earlier post on this thread about how to run linux commands from a cell in a Jupyter notebook, by using the so-called “bang escape” (prefixing with !)? Then @Mun_Chung_Wong used that method and was able to find that the linux “tar” command is present in the Docker image for that assignment.

Then all you need to know is how tar works and that will let you create a compressed “tar” file with all the files present. Then you can download that from the File Explorer view you get by clicking “File → Open”.

1 Like

thank you!