Skip to content

Commit 2c1bb49

Browse files
committed
Updated environment
1 parent 25a3973 commit 2c1bb49

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.devcontainer/devcontainer.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
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",
@@ -20,5 +25,10 @@
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
}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
.vscode
1+
__pycache__
22
.ipynb_checkpoints
3+
.vscode
4+
.venv

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ipykernel
1+
jupyter==1.1.1

0 commit comments

Comments
 (0)