-
Notifications
You must be signed in to change notification settings - Fork 48
ipywidgets randomly missing (again) in test notebook #240
Comments
See this comment (and others in that issue) from Sylvain about potential timing issues around |
Looks to be another ipywidgets timing bug. Can't be related to requirejs because we're now webpacking all of ipywidgets into our build to avoid jupyter-widgets/ipywidgets#561. But the consequence sure looks like the issue we reported before against ipywidgets. /cc @SylvainCorlay @Carreau because I get the feeling the bug mentioned on standup yesterday and the timing issues we've seen are intertwined. |
Findings so far
Thought: We're webpacking all of ipywidgets, but loading declarative widgets asynchronously. Decl widgets also loads all of its modules async. Is the use of async require for decl widgets somehow tripping up ipywidgets thereafter? /cc @lbustelo |
I have experienced the same timing issue in an example corresponding to
|
Yep. Root cause here is the same as in jupyter-widgets/ipywidgets#561: when loading any modules asynchronously, classes from jupyter-js-widgets also start getting resolved asynchronously because of the logic in the utils.js More details about what's happening here in dashboard server with decl widgets vs not ... As soon as @jhpedemonte is going to add more detail to jupyter-widgets/ipywidgets#561. We should continue the convo there. (This defect is just a symptom.) |
The remaining work here is to update to jupyter-js-services 0.10.2 and whatever version of ipywidgets ends up containing the other half of the fix (5.1.5?). |
Yeah I will continue making minor releases of ipywidgets. |
Fixes jupyter#240 (c) Copyright IBM Corp. 2016
Fixes #240 (c) Copyright IBM Corp. 2016
Tasks:
Original Description:
Using:
OR:
And deploying this notebook:
https://gist.github.com/parente/bcdaab0b004d22dadd60c811240ea048
Sometimes the labels on the ipywidgets widgets go missing. Sometimes the entire widgets go missing. It varies from refresh to refresh.
Expected (seen in notebook):
Result (seen in dashboard server):
Worth noting
The text was updated successfully, but these errors were encountered: