Platform: Colab (Free; $10/month Pro)

Script works now, apologies! See the updated one in the top post

1 Like

Can I know, why you are doing this?

I included it in the script as there are few issues with running notebooks due to an error caused by execution count. The line basically takes care of that. If you are not facing any issues with running the notebooks, you can remove that line

1 Like

Great, thank you! Can you tell me what the bug was? I couldn‘t find it…

An issue with running the bash scripts basically. I was trying to do it via curl but I had to save the script via wget then run it with sh bash.sh

I just wanted to say that i love this little hack. Having access to a cheap/free gpu and using the default jupyter gui makes me so much more productive, including achieving this with a single function call.

Thanks for your efforts!

2 Likes

I concur to this.

1 Like

Hi all. So after the dust has settled: there now a standard, working, best-practice notebook for setup in Colab, and if so, where can I find it?

@jcatanza see the top post. There’s a few methods you can work with and all do.

1 Like

Hey @imrandude, apologies for my naiveness, but can you please clarify what’s the advantage of having a “VS Code Environment” in Google Colab? I think it is still not clear for me what’s a VS Code Env, haha When googling about it, it feels like it is an IDE made by Microsoft. If yes, then which features from them are advantageous to have on Colab? Thanks!

WOW, thank you @imrandude and @deeplearner! Your little hack for accessing jupyter env on Colab is working perfectly here :slight_smile:

2 Likes

Please check this for details -> https://forums.fast.ai/t/five-ways-to-debug-in-fastai/66496
Where @ slawekbiel has mentioned 5 steps of debugging Python code using FastAI v2 as example.
He has shown on how to use VSCode to debug as well.

More over, the limitation with Colab was that you couldn’t use it as a IDE. This is now enabled with VSCode and JupyterLab (ie., I suppose using nbcovert on the notebooks created).

2 Likes

Wow, what a cool hack. Didn’t know about subprocess. :slight_smile:

Hey guys,
I’m trying to work on a project in Google Colab, but get_image_files times out every time. I googled it and it seems like Colab is no longer able to process directories with lots of files in it. Did anyone face similar issues and have any workarounds?

I tried accessing the jupyter env on colab following the instructions provided in the first post. I get the ngrok tunnel running and able to see the jupyer environment as well. But the kernel is always busy and nothing happens when I run something in a cell. Am i missing something or is there a bug? I am attaching the screenshots of what i am seeing here in case it helps. I am running this colab on a mac. I have tried to restart the kernel, interrupt, shutdown and restart but nothing works.

Can you start terminal from jupyter server and check if you are able to run any bash commands ?

You can run bash commands by prefixing your command with ‘!’.

Just execute the cells with commands like these:

!pip install fastai2
!git clone some_git_repo

# and so on...

Since @pnvijay is not able to run any commands from jupyter, I am not sure if he can run the bash commands from jupyter.

sorry, I thought you were asking a question yourself… :smiley: Carry on…

I ran lesson-2 notebook on colab without any issue. Are you having issues with the same notebook or running a custom code ?