0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Google ColabのVSCode拡張機能

Posted at

記事の概要

VSCodeにGoogle Colabへアクセス可能な拡張機能がリリースされました。

導入手順を確認します。

導入方法

VSCodeの拡張機能で「Colab」を検索して、拡張機能をインストールします。

image.png

Jupyterも。

image.png

起動

拡張子が.ipynbのファイルを作成します。

image.png

ファイルの内容は以下のように表示されます。

image.png

「カーネルを選択」をクリックして、「Colab」を選択します。

image.png

「Auto Connect」か「New Colab Server」をクリックする。

image.png

「許可」をクリック。

image.png

ブラウザでGoogleアカウントにログインをしに行きます。

image.png

ログインしたらVSCodeに帰ります。

image.png

「開く」をクリックします。

image.png

「Python 3」をクリックします。

image.png

GPU or TPUの場合

「New Colab Server」を選択します。

image.png

ここから選択できます。

image.png

以下のコマンドを実行して、ログが正常に出力されてば、GPUが利用されていることが分かります。

!nvidia-smi

image.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?