How to use VS Code (code server) with Google Colab in just 3 lines

install package

!pip install colabcode

GitHub https://github.com/abhishekkrthakur/colabcode/

Start colab code

from colabcode import ColabCode
ColabCode(port=10000)

After executing the above, the ngrok link will be displayed in Jupyte Notebook, and when you click the link, VSCode (codesever) will be displayed.

python Screen Shot 2020-09-11 at 10.42.54 AM.png

After that, you can open a terminal and run it normally with python test.py. By the way, you can easily change the theme by clicking the Gear icon in the sidebar of the editor.

Screen Shot 2020-09-11 at 10.48.15 AM.png

nodejs You can also use nodejs. It's installed as old as v8.11.3, but it worked fine. Screen Shot 2020-09-11 at 10.55.29 AM.png

Recommended Posts

How to use VS Code (code server) with Google Colab in just 3 lines
How to use VS Code in venv environment on windows
How to use Google Test in C
[For beginners] How to implement O'reilly sample code in Google Colab
How to use tkinter with python in pyenv
How to display videos inline in Google Colab
Use Python in Anaconda environment with VS Code
How to run AutoGluon in Google Colab GPU environment
How to use Spacy Japanese model in Google Colaboratory
How to use Google Colaboratory
How to extract any appointment in Google Calendar with Python
Try HeloWorld in your own language (with How to & code)
Python: How to use async with
How to use classes in Theano
How to use SQLite in Python
How to use virtualenv with PowerShell
[Memo] How to use Google MµG
How to use ChemSpider in Python
How to use FTP with Python
How to use PubChem in Python
How to run TensorFlow 1.0 code in 2.0
How to develop containers on remote servers with VS Code Remote-Containers
How to connect to Cloud Firestore from Google Cloud Functions with python code
The strongest way to use MeCab and CaboCha with Google Colab
How to build Python and Jupyter execution environment with VS Code
How to use calculated columns in CASTable
Use MeCab and neologd with Google Colab
[Introduction to Python] How to use class in Python?
How to use mecab, neologd-ipadic on colab
How to use ManyToManyField with Django's Admin
How to use OpenVPN with Ubuntu 18.04.3 LTS
How to use Cmder with PyCharm (Windows)
How to work with BigQuery in Python
How to use Ass / Alembic with HtoA
How to use Japanese with NLTK plot
Pass PYTHONPATH in 1 minute with VS Code
How to search Google Drive with Google Colaboratory
How to use jupyter notebook with ABCI
How to use Anaconda interpreter in PyCharm
How to use __slots__ in Python class
How to use regular expressions in Python
How to use Map in Android ViewPager
How to use is and == in Python
How to use SQLAlchemy / Connect with aiomysql
How to use JDBC driver with Redash
How to debug a Python program by remotely connecting to a Docker container in WSL2 environment with VS Code
How to deal with memory leaks in matplotlib.pyplot
How to use the C library in Python
How to use GCP trace with open Telemetry
Log in to the remote server with SSH
[REAPER] How to play with Reascript in Python
How to get the notebook name you are currently using in Google Colab
How to use Python Image Library in python3 series
How to drop Google Docs in one folder in a .txt file with python
How to deal with run-time errors in subprocess.call
How to use the Google Cloud Translation API
Use Docker development container conveniently with VS Code
How to Learn Kaldi with the JUST Corpus
How to set up a Google Colab environment with Coursera's advanced machine learning courses
I tried to build an environment with WSL + Ubuntu + VS Code in a Windows environment
How to use a library that is not originally included in Google App Engine