Skip to content

Instantly share code, notes, and snippets.

@marcraminv
Last active March 6, 2024 19:39
Show Gist options
  • Save marcraminv/8b0494fe90443531f8eb672ca824d796 to your computer and use it in GitHub Desktop.
Save marcraminv/8b0494fe90443531f8eb672ca824d796 to your computer and use it in GitHub Desktop.
Python environment using devcontainers
{
"image":"mcr.microsoft.com/devcontainers/python:3.11",
"name": "devcontainers-py",
"runArgs": ["--name", "devcontainers-py", "--rm"],
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.debugpy",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"ms-toolsai.jupyter",
"ms-toolsai.jupyter-keymap",
"ms-toolsai.vscode-jupyter-slideshow",
"ms-toolsai.vscode-jupyter-cell-tags",
"ms-toolsai.jupyter-renderers"
]
}
},
"overrideCommand": true,
"onCreateCommand": "echo '--> CREATING -:CONTAINER:-'",
"initializeCommand": "echo '--> INIT -:CONTAINER:-'",
"postCreateCommand": "echo '--> POST.CREATE -:CONTAINER:-'",
"postStartCommand": "echo '--> POST.START -:CONTAINER:-'",
"postAttachCommand": "echo '--> POST.ATTACH -:CONTAINER:-'",
"updateContentCommand": "echo '--> UPDATE.CONTENT -:CONTAINER:-'",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment