Comments (3)
Thanks it is working now
from vizro.
Hey @pieterseyns ,
thank you for posting this question, much appreciated!
Have you checked our guide on the different run methods and deployments: https://vizro.readthedocs.io/en/stable/pages/user_guides/run/#deployment-of-vizro-app
It seems to me that you may want to do:
app = Vizro().build(dashboard)
server = app.dash.server
where dashboard
could be you create_dashboard
function.
Let us know if this did not work, and we can try further.
from vizro.
@pieterseyns by Heroic do you mean Heroku? If so then I can confirm this works well because I tried it out just yesterday π
Just to add to what @maxschulz-COL said, the basic things you need on Heroku are:
Procfile
withweb: gunicorn app:server
requirements.txt
withvizro
andgunicorn
- As per the above, put your app in
app.py
exposing the underlying Flask server by doingapp = Vizro().build(dashboard); server = app.dash.server
- Custom assets go in
assets
folder and are picked up automatically - Thatβs it! Everything works straight away. Just push to Heroku and it will deploy
So the deployment process is really identical to Dash, just the server
object in Vizro is nested one level deeper in app.dash.server
rather than app.server
as it is in Dash. I recommend these articles on deploying Dash which give further guidance and common pitfalls on deploying to Heroku:
- https://dash.plotly.com/deployment
- https://towardsdatascience.com/deploying-your-dash-app-to-heroku-the-magical-guide-39bd6a0c586c
from vizro.
Related Issues (20)
- Decimal numbers are sometimes being cut-off in sliders/range-sliders HOT 2
- Custom actions do not work when applied through a component that gets added to a union such as `ControlType`
- Create an example dashboard for novice/intermediate/advanced users
- Restyle the documentation landing page
- Add documentation about the demo example and clean up `examples`
- Revise the graphics used in README for `vizro-ai` and `vizro-core` so they render better in PyPI
- CSS of AG Grid `floatingFilter` option buggy HOT 1
- AgGrid doesn't work with `persistence` props HOT 2
- Add a tabbed navigation to move between `vizro-core` and `vizro-ai` docs HOT 1
- Can I add an icon to a button HOT 2
- Check all links in docs and make them more accessible HOT 15
- Enabling in-depth user interaction through input widgets HOT 7
- typo in explore-components/#22-add-further-components HOT 1
- False negative on hatch run test inside container environment HOT 3
- Custom AG Grid function overwrites pandas.DataFrame provided as input with an empty pandas.DataFrame HOT 2
- __call__ function within models/_components/graphy.py passing parent function kwargs unintentionally HOT 11
- Minor typo in "Explore Vizro" tutorial HOT 1
- Contribution guidelines link leads to `404` HOT 1
- Relationship analysis chart in demo has no flexibility in Y axis HOT 9
- Multiple Series Line Chart Updates HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vizro.