Spaces:
Sleeping
Sleeping
Add devcontainer configuration.
Browse files
.devcontainer/devcontainer.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": "HF agents final project",
|
| 5 |
+
"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 |
+
"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 |
+
|
| 24 |
+
// Use 'postAttachCommand' to run commands after the container is started.
|
| 25 |
+
//"postAttachCommand": ""
|
| 26 |
+
}
|