LoginSignup
41
41

More than 3 years have passed since last update.

たった3行でVSCode(codeserver)をGoogle Colabで使う方法

Last updated at Posted at 2020-09-11

packageをインストール

!pip install colabcode

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

colabcodeを起動

from colabcode import ColabCode
ColabCode(port=10000)

上記を実行すると、ngrokのリンクがJupyte Notebookに表示されるので、そのリンクをクリックするとVSCode(codesever)が表示されます。

python

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

あとはターミナルを開いて、普通にpython test.pyで実行できます。
ちなみに、エディタのサイドバーのGearアイコンをクリックするとテーマが簡単に変更できます。

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

nodejs

nodejsも使えます。インストールされているのは、v8.11.3と古いですが、普通に動きました。
Screen Shot 2020-09-11 at 10.55.29 AM.png

41
41
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
41
41