Skip to content

Commit

Permalink
Run example to begin with
Browse files Browse the repository at this point in the history
  • Loading branch information
antonymilne committed Sep 24, 2024
1 parent b531989 commit 788d49b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
1 change: 0 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ RUN chmod +x install-hatch.sh && ./install-hatch.sh && rm install-hatch.sh

USER vscode
RUN echo "alias hr='hatch run'" >> ~/.bashrc
RUN /usr/local/bin/hatch python install 3.11
13 changes: 9 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
//{
// "postAttachCommand": "cd vizro-core; hr example",
//}
{
"postAttachCommand": "cd vizro-core; hr example",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python"
]
}
},
"build": { "dockerfile": "Dockerfile" }
"build": {
"dockerfile": "Dockerfile"
},
"portsAttributes": {
"8050": {
"label": "scratch_dev example"
}
}
}
2 changes: 1 addition & 1 deletion .devcontainer/install-hatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# - remove GITHUB_PATH and RUNNER_TOOL_CACHE
# - set the following variables
VERSION="latest"
INSTALL_PATH="/usr/bin/local"
INSTALL_PATH="/usr/local/bin"
RUNNER_OS="Linux"
RUNNER_ARCH="X64"

Expand Down
4 changes: 2 additions & 2 deletions vizro-core/examples/scratch_dev/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
iris = px.data.iris()

page = vm.Page(
title="Page with subsections",
title="Page with subsedsfctions",
layout=vm.Layout(grid=[[0, 1]]),
components=[
vm.Container(
Expand All @@ -31,4 +31,4 @@
dashboard = vm.Dashboard(pages=[page])

if __name__ == "__main__":
Vizro().build(dashboard).run(debug=False)
Vizro().build(dashboard).run()

0 comments on commit 788d49b

Please sign in to comment.