LoginSignup
0
0

More than 1 year has passed since last update.

Colaboratory にて VSCode を activate する

Posted at

Colaboratory による対話的コーディングも便利だが、スクリプト形式での実装も行いたいときがある。やり方の一つとして My Drive にマウントして VSCode を activate する。

まず、必要なインストールを行う。

!pip install colabcode

その後、ランタイムをリセットし、以下を実行する。実際には password は適当な文字列を指定する。

from colabcode import ColabCode
ColabCode(port=10000, password="password", mount_drive=True)

My Drive へのマウント認証を行ってから、NgrokTunnelに表示されている url へアクセスすると VSCode をブラウザ上で立ち上げることができる。

0
0
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
0
0