Skip to content

Commit

Permalink
Merge branch 'docs/add-dash-enterprise' of github.com:mckinsey/vizro …
Browse files Browse the repository at this point in the history
…into docs/add-dash-enterprise
  • Loading branch information
maxschulz-COL committed Jan 23, 2025
2 parents 45ae546 + 4f4e627 commit 45bcaf2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vizro-core/docs/pages/user-guides/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ If this is your first Vizro deployment then we recommend using our ["first dashb
1. Copy our example Hugging Face dashboard by duplicating our ["first dashboard" example Space](https://huggingface.co/spaces/vizro/demo-first-dashboard). To do so, click the following button: [![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-md.svg)](https://huggingface.co/spaces/vizro/demo-first-dashboard?duplicate=true). This should open a window with the following form: ![Form to duplicate Space](../../assets/user_guides/deploy/hugging_face_duplicate_this_space.png)
1. You do not need to alter any of the default options but if you would like to then refer to the [Hugging Face documentation](https://huggingface.co/docs/hub/en/spaces-overview#duplicating-a-space) for an explanation of each.
1. Click "Duplicate Space" to start building your Hugging Face Space. This takes around 10 seconds, and when complete you should see the following dashboard running. ![Running dashboard](../../assets/user_guides/deploy/hugging_face_space.png)

<!-- TODO: add https://huggingface.co/join -->

To turn the example app into your own, you will need to edit the code in the `app.py` file. Click on the Files tab at the top of your app and select `app.py`. Click the Edit button highlighted in the below screenshot to enter an editor view of the file. ![Edit app.py](../../assets/user_guides/deploy/hugging_face_edit_app.png)

You can now copy and paste your app code into the editor. When you've finished editing, click "Commit changes to `main`". This immediately triggers a rebuild of your Space. As with the initial build this takes around 10 seconds, and when complete you should be able to view your own app deployed on Hugging Face!
Expand Down Expand Up @@ -96,7 +98,9 @@ The [Ploomber Cloud documentation](https://docs.cloud.ploomber.io/en/latest/apps
1. Create a `Dockerfile` by copying the [example given in the Ploomber Cloud documentation](https://docs.cloud.ploomber.io/en/latest/apps/vizro.html#application-setup). See our [section on Dockerfiles](#dockerfile) for more information.
1. Compress your `app.py`, `requirements.txt` and `Dockerfile` into a single zip file.
1. Upload the zip file to Ploomber Cloud.

<!-- TODO: https://platform.ploomber.io/register -->

## Dash Enterprise

Since a Vizro app is a Dash app under the hood, they can be deployed to [Dash Enterprise](https://plotly.com/dash/) and accessed in the same way as other Dash apps.
Expand Down

0 comments on commit 45bcaf2

Please sign in to comment.