Unable to Run notebooks on COlab

Can some one please list out the steps to run the notebooks in google colabs notebooks after we do the git.


Hi !

For me simply run the cell:

!curl -s https://course.fast.ai/setup/colab | bash

Works perfectly !

All the steps are listed here if you want more information

i dont have problem in import fast ai libraries…
I have trouble running Part2 notebooks … it cant access the local procedures called in notebooks ,defined in the .pys of ipynbs.

Maybe then this is what your are looking for:

No luck…
I followed below steps

  1. !git clone https://github.com/fastai/fastai_docs.git in colab … which created fastai_docs folder under ./content
  2. from google.colab import drive
    drive.mount(’/content/fai/’, force_remount=True)
  3. then i copied using cp command all files to exp folder that i created on mounted path My drive/colabnotebooks/exp

I use this template

1 Like

For notebooks in part 2, I have been using Colab.

I put the notes here:


Here is how I got the notebooks to run: Colab setup for Part 2 2019

I am probably reinventing the wheel here.

Goto Colab
Select lesson 8 - https://colab.research.google.com/github/fastai/course-v3/blob/master/nbs/dl2/00_exports.ipynb
Save to drive. It becomes Copy of 00_exports.ipynb. This is saved to folder Colab Notebooks on your Google Drive.
Rename it to 00_exports.ipynb (File->Rename)

On a new tab locate

Next retrieve the source code and select the RAW option to get the text. Save this to your computer and upload it to the folder Colab Notebooks on your Google Drive

Return to Colab and make Colab Netbooks the working directory

!curl -s https://course.fast.ai/setup/colab | bash
!pip install fire
from google.colab import drive
drive.mount(’/content/gdrive’, force_remount=True)
%cd “/content/gdrive/My Drive/Colab Notebooks/”

Now you can continue the lesson

TEST = ‘test’

!python notebook2script.py 00_exports.ipynb

import json
d = json.load(open(‘00_exports.ipynb’,‘r’))[‘cells’]