Comments (6)
Good question. I haven't looked into Blueprints recently so I'm not too familiar with how this would work or what it would provide. I'd appreciate some community guidance here.
Are you just looking to use Dash in an existing Flask app? One way to do this right now would be to just run Dash separately from the your other Flask instances and embed the Dash apps as an Iframe in your templates.
from dash.
As far as I understood after reading the user guide, one would need to write a new Dash (Flask) application for each plot instance, since the layout of the page is also bound to the application object.
It seems there is no support for routing, meaning I can't have different plot instances within the same application, each with it's own layout, listening to a specific route. Something like:
route | rendered plot |
---|---|
myapp.com/plots/barchart | barchart |
myapp.com/plots/scatterplot | scatterplot |
... | ... |
This way, one could even use the contents of the HTTP request, e.g. to specify the data to be plotted.
The concept of flask blueprints might allow to do this, as each blueprint could contain a dash application, and then every blueprint would be registered under a specific route in the main flask application. However, I'm afraid that due to the fact, that every Dash instance creates a full Flask application, blueprints can't be used in this situation. I'm not a blueprint expert though, so I would appreciate if someone with more knowledge could explain this.
@chriddyp please correct me if I misunderstood something here.
from dash.
@chriddyp is this correct — there's no way to have more than one chart in the single Flask app right now?
from dash.
Would be happy to know if anyone got this working (blueprint or multiple charts in one flask application)
from dash.
Hello everyone, I'm wondering that how to get blueprint instance in dash app in init dash plot object? thank you
from dash.
hi i have the same issue in creating how to get blueprint instance in dash app in init dash plot object?
from dash.
Related Issues (20)
- Dangerous link detected error after upgrading to Dash 2.15.0 HOT 3
- When moving the cursor, it will sometimes get stuck
- dash incorrectly marked as vulnerable to GHSA-547x-748v-vp6p via dash-html-components HOT 3
- [BUG] Breaking change for chained callbacks in dash>=2.9.0 HOT 4
- [BUG] DataTable Dropdown Text Deletion Issue HOT 3
- dcc.Input type="color" raises error HOT 4
- [BUG] Weird component redraw issue in dash 2.16 HOT 2
- Add documentation/examples using CeleryManager as background_callback_manager together with Dash Pages HOT 2
- Create Desktop Application
- [BUG] dash_mantine_components can't be found in dash 2.16.0 HOT 6
- [BUG] Dash 2.16.0 HOT 4
- [Feature Request] Allow data-* aria-* parameters passed into dcc.Input
- [BUG] Plotly Figure scale not respected for Mesh3d figure HOT 5
- [Feature Request] Supports more flexible and free component type properties HOT 1
- [BUG] Meta tags don't work for Dash pages when app is integrated into Flask app HOT 1
- [BUG] width of the dcc.Input field does not scale properly when step=None HOT 6
- [BUG] OSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted HOT 5
- [BUG] title option in
- [BUG] title option in options seems to not work. HOT 1
- [BUG] Error loading dependencies HOT 7
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 dash.