'google colab wont finish downloading file

I am working on my notebook in google colab. To save my progress I imported the files module from from google.colab import files and I am using files.download(file_name) function to download the file with my data.

However, When I run the code it seems like the command is stuck. The output I get is the following progress bar for downloading image

This loading bar is running for couple hours and wont finish (it didn't make any progress visually speaking).

The file isn't more than a few dozens MB and I was able to download it with the colab's file explorer

enter image description here

Using this method it took me no more than a few minutes to download the file



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source