Beginner: Using Colab or Kaggle ✅

Hi,

I had tinkered with the course a couple times before but didn’t get started in earnest. Before, it seemed like the course strongly suggested Google Colab, but now with the recent version of the course, it seems like the standard set up uses Kaggle notebooks instead? Is that correct?

Thanks

Yes that’s right.

3 Likes


in lesson 3 ,I am trying to launch gradio app after predicting the model in kaggle and see it in browser .
It is showing me “ERROR: Exception in ASGI application”.

can anyone help?

When I open colab notebook, it looks like somethings is not displaying properly.

While source is <<chapter_intro>>

source

But display <> only. I think it should work as a link but it doesn’t.

output

I’m excited for this course and book! One thing I’m curious about is why the course is written with examples in Kaggle notebooks, but the book is written in Colab notebooks. It looks like both are Jupyter notebooks. What are the main differences between Kaggle and Colab?

I think this is something generated for the hardcopy but not the web. Just ignore it.

The book was written a couple of years ago when (I presume) Colab provided the best free performance, and/or best multi-notebook folder structure - at the time. An instructor led online lesson could more easily utilise individual/separate Kaggle notebooks. btw, the “current best” service recommended within the 2022 course videos wsa Paperspace.

Also often people ask about “how to get started in Kaggle competitions?”.
So it is a good way to get started and break down that ‘getting started on Kaggle’ barrier at the same time, whilst introducing a place to practice and upskill. win/win

Hello! I have a very silly question and am embarrassed to ask :see_no_evil:.
Can someone tell me how do I restart a kernel in Kaggle?
I tried pip installing the fast.ai library and it showed the following:


I tried to click the marked option, it didn’t work, not sure what it does.
I tried refreshing/re-opening the notebook, it didn’t work.

I don’t think you should ever be embarrassed to ask questions … that’s the only way to learn :slightly_smiling_face:

I believe if you tap the “Stop Session” option in the menu where you had the “Restart & Clear Cell Outputs” option, it stops your current Kaggle session and then the button will turn to a “Start Session” and I believe once you do that, the kernel is restarted … You can try that and see but I don’t use Kaggle much and so am going by what I think is how it should work …

If that doesn’t work, please let us know and I’m sure somebody will help … Or I’ll do a bit of digging :slightly_smiling_face:

2 Likes

It didn’t work. Will look further. Btw, is Colab a good option compared to Kaggle?

I don’t have a local machine. The only options are online GPUs.

Fastai is preinstalled on kaggle. Are you sure it’s not working?

It is asking to re-start the kernel when I do pip install.

What isn’t working? import fastai?

I tried import fastbook it showed an error.

You don’t need to import fastbook on kaggle. You can just import what you need directly. BTW in your screenshot it doesn’t look like you pip installed fastbook?

I did on a new file:
it works but is showing this note to restart the kernel.

I ignored that “note” and moved forward. Works fine.