How To use Google Colab with VS Code

Google Colab and VS Code are the most popular editor tools used by many Python developers and Researchers to develop different tech solutions or systems (especially in Machine Learning & Data Science).

Many Python developers and Data scientists know how to use Google Colab, but do you know that you can set up a VS Code on Google Colab and use it as an editor the same way as in your local machine?

In this article, you will learn

1.How to install the colabcode python package.
2.How to start the VS Code (code server).
3.How to access the online VS Code.
4.Open the terminal.
5.Run a python file.

Steps on How to Use Google Colab with VS Code

1.Open Colab Notebook

The first step is to launch a new colab notebook in your Google Colab and you can rename the file as you want.

For example, run_vscode.ipynb

2.Install colabcode python package.

To use Google Colab with VS Code (code server), you need to install the colabcode python package. This is an awesome open-source python package developed by Abhishek Thakur.

To install the package, run the following command in your notebook cell.
Read the full article here:How To use Google Colab with VS Code

34