Need help on Jupyter Notebook

Hi everyone,

I need some help on downloading the Jupyter notebook. I have did some mistake here.

I have moved all the files to one folder and renamed them. After downloaded it, it was in GZ File format. I was unable to open it to access like in Jupyter notebook format nor in Google Colab. When I check from the lesson, the notebook is missing and display " 404 : Not Found
You are requesting a page that does not exist!" message.

Can admin help me to check whether I can reverse what I have done in my account and how to download all Jupyter notebook in 1 go (even I have not completed the course)? I am sorry for causing this mistake.

Thank you .

@glemaitre58, @lesteve @ogrisel
Hope you are able to response to my message. Thank you.

@brospars maybe ?

Hi Alvin19,
You say you packed all your in one folder and you downloaded on your computer the file was in .gz (gunzip) file format.

Is it not .tar.gz ?

What is the size of the file on your computer? If the 1 go you mentionned is the size of your .gz file that means your notebooks are probably in.

To access your files you need to unpack them form the archive.
On linux or windows 10 go on a terminal (for windows use powershell or the command prompt in administrator mode) and tape:

tar -xvzf C:\PATH\TO\FILE\FILE-NAME.tar.gz -C C:\PATH\TO\FOLDER\EXTRACTION

Alternatively you can use third party software as 7-zip or winrar to un pack your files on windows 10 but you ll have to do sequentially (first unpack files.tar.gz to files.tar and then files.tar to files)

In hoping that help you.

Hi @echidne ,

Yes I initially rename it and downloaded it but in my download folder using Window is showing GZ File. I have attached a snapshot of the downloaded file.
tar

I am unable to use 7-zip to unzip the ile as there is no option when I right click it.

I try to run the script you have provided to me using Command Prompt but failed to open. Here is the snapshot of the code and result.

Is there anything I can do?

sorry I did not explain enough.
You have to modify teh code i gave for your use.
basically the code can be read as:
Unpack my files in a new folder
so if I’m correctly guessing from what i read and saw on your post you have to:

  1. create a folder where you want unpacked your notebooks (for example unpacked_notebooks in C:\Users\potiu)
  2. you write that code in your Command Prompt in administrator mode:
tar -xvzf C:\Users\potiu\Downloads\notebook*.tar.gz -C C:\Users\potiu\unpacked_notebooks

and all your notebooks will be unpacked in the unpacked_notebooks folder

@echidne ,

Sorry to trouble you. I still unable to unpack it. I have created an empty folder called test in Download folder

@lfarhi , are you able to help me?
I may mess up my Jupyter notebook on my account.

Dear Alvin,
Your problem come here that you have a space beetween ‘notebook’ and ‘(2)’ so basically tar is looking for a file named ‘notebook’ that doesn’t exist.
It was for that reason I used a ‘*’ after ‘notebook’ in my code. The ‘*’ says to ‘tar’ to unpack all files that start by ‘notebook’ so basically tar -xvzf C:\Users\potiu\Downloads\notebook*.tar.gz is to unpack all your notebook archives. If you want to unpack one specificaly you have first to rename it to get rid of the space

@echidne , I have checked again the script. It works and I am able to view the Jupyter notebook. You have solved my problem. Appreciate that.

@lfarhi I saw my Jupyter account is working fine now. Thank you as you may help me at the backend.

:+1: :+1:

1 Like