Skip to content

Commit

Permalink
more devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Jan 3, 2025
1 parent 5d9153e commit 37c0382
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 20 deletions.
52 changes: 32 additions & 20 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:3.11-bookworm",
"onCreateCommand": ".devcontainer/startup.sh",
"customizations": {
"vscode": {
"settings": {
"python.testing.pytestEnabled": true,
"name": "Marimo Dev Container",
"image": "mcr.microsoft.com/devcontainers/python:3.12",
"hostRequirements": {
"cpus": 4
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {}
},
"forwardPorts": [8080],
"customizations": {
"vscode": {
"settings": {
"python.pythonPath": ".venv/bin/python",
"python.defaultInterpreterPath": ".venv/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.testing.pytestArgs": [
"."
],
"python.pythonPath": ".venv/bin/python",
"python.defaultInterpreterPath": ".venv/bin/python",
"python.terminal.activateEnvInCurrentTerminal": true
},
"extensions": [
"ms-toolsai.jupyter"
]
}
}
"python.testing.pytestArgs": ["."],
"python.terminal.activateEnvInCurrentTerminal": true,
"marimo.pythonPath": ".venv/bin/python",
"marimo.marimoPath": ".venv/bin/marimo"
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"marimo-team.vscode-marimo"
]
}
},
"onCreateCommand": ".devcontainer/startup.sh",
"postStartCommand": "uv run marimo --yes edit --host=localhost --port=8080 --headless --no-token",
"remoteUser": "vscode"
}
2 changes: 2 additions & 0 deletions .devcontainer/startup.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync -vv --frozen
# install marimo
uv pip install --no-cache-dir marimo

0 comments on commit 37c0382

Please sign in to comment.