File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed
Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 11// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22// README at: https://github.com/devcontainers/templates/tree/main/src/python
33{
4- "name" : " Python 3" ,
4+ // Container definition for a Python 3.11 development environment
5+ "name" : " Python 3.11" ,
56 "image" : " mcr.microsoft.com/devcontainers/python:0-3.11" ,
6- "onCreateCommand" : " sudo apt update && sudo apt upgrade -y && pip3 install --upgrade pip && pip3 install --user -r requirements.txt" ,
7+
8+ // Custome configuration options
79 "customizations" : {
810 "vscode" : {
11+
12+ // Use 'settings' to set default VS code values on container create
913 "settings" : {
1014 "jupyter.kernels.excludePythonEnvironments" : [" /usr/bin/python3" ],
11- "remote.portsAttributes" : {
12- "ipykernel_launcher" : {"onAutoForward" : " ignore" }
13- }
15+ "remote.autoForwardPorts" : false ,
16+ "remote.restoreForwardedPorts" : false
1417 },
18+
19+ // Add the IDs of VS code extensions you want to install here
1520 "extensions" : [
1621 " -dbaeumer.vscode-eslint" ,
1722 " ms-python.python" ,
2025 ]
2126 }
2227 },
28+
29+ // Use 'onCreateCommand' to run commands once when the container is created
30+ "onCreateCommand" : " sudo apt update && sudo apt upgrade -y && pip3 install --upgrade pip && pip3 install --user -r requirements.txt" ,
31+
32+ // Use 'postAttachCommand' to run commands each time a user connects to the container
2333 "postAttachCommand" : " htop"
2434}
Original file line number Diff line number Diff line change 1- .vscode
1+ __pycache__
22.ipynb_checkpoints
3+ .vscode
4+ .venv
Original file line number Diff line number Diff line change 1- ipykernel
1+ jupyter == 1.1.1
You can’t perform that action at this time.
0 commit comments