Comments (5)
I'll need to spend some time properly thinking this all through, since it's a tricky topic and not something we should rush. But just to note another possible idea while I remember: maybe we need another method on VizroBaseModel
which enables you to instantiate and register a model in one go. This would avoid you needing to remember to manually call register
after you've created a model in pre-build, but I'm not sure exactly what that register
method would do.
from vizro.
Another possible solution might be to clear the managers on shutdown of the flask process. I did this in an old solution where we used to copy assets to a temporary directory. It's not super reliable (e.g. from memory there's some complexities with multiple threads), but maybe in the context of Jupyter where you're unlikely to be doing that it would work well.
from vizro.
Another idea: a global dashboard
object and navigating through that hierarchy (as in the medium term solution above) might actually be a good long term solution. This would probably avoid difficulties with needing to recursively register. But then how would pre_build
know what to operate on?
Or it could be Vizro.dashboard
- think about comments about Dash use in #109.
from vizro.
Another point against hierarchical registration or at least in favour of keeping _items_with_type
: when we implement components nested in tabs or containers, it gets harder to collect e.g. all components on the page.
Note that #142 got rid of several calls to _items_with_type
that required the dashboard.
from vizro.
Closing this just so we don't have the comments spread over too many different places. #120 is a good fix for Jupyter for now, and the real issue here is much deeper than just Jupyter - will continue the conversation in #109 and #111 anyway.
from vizro.
Related Issues (20)
- Create an example dashboard for novice/intermediate/advanced users
- Restyle the documentation landing page HOT 4
- 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 10
- Multiple Series Line Chart Updates HOT 2
- Consider adding a file uploader widget HOT 2
- New features available for dcc.Loading HOT 1
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.