-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential ways forward regarding a smoother experience in Jupyter #65
Comments
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 |
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. |
Another idea: a global Or it could be |
Another point against hierarchical registration or at least in favour of keeping Note that #142 got rid of several calls to |
At the moment, using Vizro in a Jupyter notebook may feel annoying when re-evaluating cells, because
ID
causes the an error.model_manager
(MM), thus creating a situation where models are in the MM that are not used within the dashboardSolving this may entail multiple levels of investigation/considerations. See also #56 for some notes and code around this issue.
Short term solution
In the short term, #59 ensures that users get a more comprehensive error message when working in Jupyter.
Note that this does not catch all cases, as a cell could also not contain a model with manual
ID
, thus never triggering an error that catches the additional models added to the MM.Medium term solution
_items_with_type
_items_with_type
in particular should not be a wild card search to any type, but if at all search for aDashboard
, all subsequent scans should be hierarchical and on a per need basisLong term solution
Idea 1
Reasoning from @antonymilne as to why this is NOT a no-brainer:
Idea 2
context_manager
that associates every model with a dashboardIdea 3
The text was updated successfully, but these errors were encountered: