oegedijk / dash_querystrings Goto Github PK
View Code? Open in Web Editor NEWExample of how to include querystrings to save state url in plotly's Dash
Example of how to include querystrings to save state url in plotly's Dash
The pyshortener package seems to have changed. This modification was required to the page_load
module:
if n_clicks and state:
shortener = Shortener()
return shortener.tinyurl.short('http://127.0.0.1:8050' + state)
This is awesome. I saved all my components in a URL string and I'm able to serve them to interested users. Thanks for your work.
If you have any thoughts on how to share map or plot views, that would be helpful.
Hi @oegedijk! Thank you so much for your work, it's very promising.
I've tested it with one of my Dash apps and it's working flawlessly.
However, I wanted to use this functionality for a project of mine which is based on a Flask app which links to 2 different Dash apps. In that case, I couldn't get the querystrings to work (the URL didn't update, and URL parameters weren't passed to components).
My workflow is a bit different, since I'm passing the Flask server to the Dash class. Then when the Flask app is created, the dashboards are added within a Flask app_context.
While moving to a pure Dash environment is viable (the projected started in Flask and then evolved to include Dash apps, which is why it has its current setup), I would need to keep both Dash apps working simultaneously. From what I've been reading (1, 2), no one has managed to make these workarounds work for multi-app setups.
So I was wondering if this is something you have faced and if you've found any solutions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.