2

I created a file in Kaggle with Python. It is in the path /kaggle/working/. If I click on the three dots and want to click download, it doesn't happen. I've tried several different browsers. Does anyone have a solution?


Edit

I found that code snippet. Unfortunately it does not work. I have an h5 file that I would like to download it.

!tar -zcvf outputname.tar.gz /kaggle/working

2 Answers2

2

This does somewhat similar task, upload files from kaggle to google drive.

You can use below snippet to generate a file download link for h5, zip, tar.gz and more, then download using wget, browser, download manager etc.

The download link will be shown in output of the cell. You may need to enable internet in kaggle notebook settings (should still work when disabled).

from IPython.display import FileLink
FileLink(r'outputname.tar.gz')
from IPython.display import FileLink
FileLink(r'outputname.h5')
B200011011
  • 3,798
  • 22
  • 33
0

The code looks good to me. Instead of the 3dots, try going to the right-hand column and choosing "Output". You should see your file there.

JohnM
  • 144
  • 1
  • 10