4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

JupyterNotebook+Docker+VSCode(Devcontainer)の開発環境構築

Posted at

my image

経緯

  • 環境を汚さずにパッとVSCodeのDev Containerで動くPython(Jupyter notebook)の開発環境が欲しかった
  • Githubに上げたので共有

動作検証した環境

  • Windows 11+WSL2 (Ubuntu)
  • Docker 20.10.20
  • VSCode 1.73.1
    上記の環境構築に関してはこちら

手順

  1. jupyter-docker-devcontainerをcloneし、VSCodeでフォルダを開く
    git clone https://github.com/ttnt-1013/jupyter-docker-devcontainer.git
  2. VSCodeに拡張機能 Dev Containerを追加
  3. 左下の「><」をクリックしReopen this folder in Containerを選択
  4. 新しいウインドウが開き、コンテナのビルドが開始される
    • 初回はビルドに時間がかかる
    • ビルドに失敗するときは、Rebuildするといけたりする
  • より詳細手順はこちら
  • 異なるPythonのバージョンを使いたいときは、リポジトリ内のDockerfileを変更
4
4
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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?