Added devcontainer
Browse files
.devcontainer/devcontainer.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
2 |
+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
3 |
+
{
|
4 |
+
"name": "Python3 Smolagent",
|
5 |
+
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
|
6 |
+
"onCreateCommand": "pip3 install --upgrade pip && pip3 install --user -r requirements.txt",
|
7 |
+
"customizations": {
|
8 |
+
"vscode": {
|
9 |
+
"settings": {"jupyter.kernels.excludePythonEnvironments": ["/usr/bin/python3"]},
|
10 |
+
"extensions": [
|
11 |
+
"-dbaeumer.vscode-eslint",
|
12 |
+
"ms-python.python",
|
13 |
+
"streetsidesoftware.code-spell-checker"
|
14 |
+
]
|
15 |
+
}
|
16 |
+
},
|
17 |
+
|
18 |
+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
19 |
+
// "forwardPorts": [],
|
20 |
+
|
21 |
+
// Use 'postCreateCommand' to run commands after the container is created.
|
22 |
+
// "postCreateCommand": ""
|
23 |
+
}
|