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)
- Using multiple datasets for custom graphs HOT 5
- How do I get Vizro to run in a Google Colab Notebook? HOT 3
- Updating Meta Tags HOT 8
- Non equal distribution of space when using cards HOT 1
- ModuleNotFoundError: No module named 'vizro.tables' HOT 1
- the selector option is from another selector HOT 5
- Use vizro.models.button to switch to another page HOT 1
- Make a grouped charts HOT 7
- Add Python 3.12 to tests
- Convert warnings into errors in tests
- The graph sample from the doc doesn't work HOT 2
- Editable data table HOT 3
- Integrate a chatbox feature to enhance the capabilities of natural language applications HOT 1
- Automatically generated navigation homepage
- BUG: `value` for slider does not work properly
- Add support for Latex in Markdown HOT 1
- How to add color to text in Markdown with vm.Card? HOT 1
- Consider using dbc components to enable dbc.themes HOT 3
- How to modify card text based on a value selected in Dropdown filter? HOT 12
- Getting FieldInfo error while running vizro HOT 3
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.