Beginner: Using Colab or Kaggle ✅

I have cloned to my local and uploading each notebook one after another. It might not be ideal. I know that it would cause issues when there are files such as utils.py to be used. But not sure if there is any other great option.

Have a quick question about lesson one Is it a bird. I imported the code into google colab but I’m running into an error where it says the list is going out of range when searching for forest images.

Is there a link anywhere which can help someone understand the reasons for so many different environments? Kaggle, Colab, Jupyter, HuggingFace Spaces, Github — I am working with a few folks and it seems this is one of the issues that they are having difficulty in grasping. (to be open, I am a bit confused by them all as well!)

Is there any way to have some sort of intellisense for python in kaggle jupyter notebooks , I was pretty used to this in vs code but not having it available in kaggle feels like a major source of friction while coding.

I tried google colab and while it does have intellisense built in , it’s really slow. So while it’s better than kaggle , it’s still no where near the experience you have while coding in your local dev environment.

Alternatively , is there anyway I can just interact with the juptyter notebooks on my local machine but have them execute code on kaggle/google colab servers.

I am having an issue about installing miniai in colab. this problem was not showing at first some weeks. But suddenly it appears and I cant even progress now. Please save me from here.

I am unfamiliar with the miniai and torchaudio libraries so I can’t help with specifics, but I searched around and found these two issues/solutions that might be related to your problem:

1 Like

Hi, experts.
I’m working on course22p2 with Colab. I notice that project needs to use command like

nbdev.nbdev_export()

to export module as part of miniai. However, It always shows the error when running the command in /content/drive/MyDrive/Colab Notebooks path:

InterpolationMissingOptionError: Bad value substitution: option 'lib_name' in section 'DEFAULT' contains an interpolation key 'repo' which is not a valid option name. Raw value: '%(repo)s'

After searched around, it seems that i need to config settings.ini file in google drive. So i used nbdev_create_config command to create a new config file and saved. However, that issue still happened.

Then, i noticed that i had hidden config file which can be checked with command get_config(). The .config_file shows Path('/content/drive/MyDrive/setting.ini'), but i can’t find this file in my folder at all. I think that file was applied when running nbdev_export().

Can anyone help with that? How can i apply the new config file when running export? How can i modify the old one? Thank you!

Thank you for your response but it did not solve the problem. Hope I will find it soon

If anyone encounters a similar issue, please share your experience. The system was functioning smoothly, and I was progressing through the stable diffusion section of the course. However, suddenly one morning I have encountered this problem, and I’m attaching a screenshot for reference. It got stucked in the miniai.learner part.

Did you run nbdev.nbdev_export() successfully?

Initially, I cloned the repository and performed a pip installation with !pip install e. . After that, I executed the cell with ‘#|default_exp init’ and after that ran the cell as shown in the attached screenshot. This process used to work smoothly in the past, but now it’s not functioning as expected.

Alternatively, if someone is familiar with the stable diffusion part and can provide guidance on how to install the required libraries and run the models in colab, I’d greatly appreciate it. If you install miniai and ran the stable diffusion part please share your codes. It will help me

stable diffusion in Colab : Please if anyone ran the stable diffusion part with proper installation with miniai in “Colab”, then please share his or her code here.

miniai module is generated from the previous course with nbdev.nbdev_export().
In nbdev config file setting.ini, it sets the lib_name = miniai, so we can use it in the future.
I’m facing the similar error by using nbdev with the correct config file.

Resolved:

  • After spending two nights for 10 hours, i finally resolved it on Colab
  • TLDR
    • You have to have similar folder structure with nbs folder, miniai folder, setup.py and settings.ini in your folder
    • Before running nbdev.nbdev_export(), you have to be the nbs folder. So that get_config() can be setup correctly and generate module for further course.

can you please kindly give a SS here of what u did to resolve? It will be too much helpful for me. Thank you in advance

I’m missing something about Colab I think… While I’m reading the notebook and executing code, it randomly times out and says I’ve been disconnected from the runtime. It then reconnects but I have to run every code snippet from the beginning to where I was because it’s a new instance that has lost the context.

Why is this happening to me? Is Kaggle better with this than Colab? I really don’t mind not using Google’s stuff.

Also, is there a way to display the tables properly when reading the book in Colab?

This is not super nice to parse compared to the table it should be:

2 Likes

I’m unable to run the cells in my notebook despite having the internet on option switched on.

The error:
Firebase: Error (auth/network-request-failed)

It also says Draft Session Error on the top right of my notebook.

Would appreciate help on this please! Thank you

I cannot run the “Is it a bird?” notebook because of the reason that ddg_images has been deprecated (image uploaded) - HTTPerror.

I also get error about pip dependencies and incompatibilities but I guess this is not an issue.

I have toggled the ‘internet’ button.

1 Like

I’m going through the colab jupiter notebook over at this url: Google Colab

that regards the first chapter of the book, however when i go to the “Running your first notebook” section, i execute the code cell with a commented “CLICK ME” phrase, that downloads pet images and ends with a cal to fine_tune() method, takes forever to execute (I’m talking over an hour and possibly more, i quit the execution because it just doesn’t make sense).

I’m fully connected to the internet, have 600 mpbs speed, why am i facing this issue?