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?

VSCodeで複数workspaceのjupyter notebook(.ipynb)から共通のkernelを使いたい

Posted at

解決したいこと

勉強用、開発用など複数のworkspaceでjupyter notebookを運用している
その際に、venvを何個も作りたくないので、共通のvenvを使いたい

前提

使いたいvenvは作成済とする

解決方法

VSCodeでworkspaceを開く

ex. 目的のディレクトリまで移動してcode .

Workspaceのsetting.jsonを作成する

image.png

setting.jsonの設定をする

{
    "python.venvPath": "/home/username/venv/",
    "python.defaultInterpreterPath": "/home/username/venv/your_venv/bin/python"
}

your_envは自分で作った仮想環境

これでselect kernelから表示されるようになる

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?