All output_area elements are getting rerender on a notebook save
See original GitHub issueWe noticed this recently and seems to be due to https://github.com/ipython/ipywidgets/blob/3a06dc11311e4d290227d9270729b15c3824b2ca/widgetsnbextension/src/manager.js#L592. This function executes on each notebook save
and does not seem to filter which output_area
to redisplay.
It is causing this issue in declarativewidgets.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
How to prevent re-rendering of components that have not ...
Personally I would avoid React.memo / React.useRef / React.useCallback . The simplest solution to your example is just create another ...
Read more >React re-renders guide: everything, all at once - Developer way
Comprehensive guide on React re-renders. The guide explains what are re-renders, what is necessary and unnecessary re-render, ...
Read more >Run notebooks and analyze data - PyCharm - JetBrains
Click Run all on the notebook editor toolbar to execute all paragraphs of the notebook, all paragraphs above or below the current one....
Read more >How to stop re-rendering lists in React? - Alex Sidorenko
Components always re-render. First, let's simplify our example by removing all props from the Item . We will still update the parent state...
Read more >5 Ways to Avoid React Component Re-Renderings
Memoization enables your code to re-render components only if there's a change ... re-rendering if the inputs are the same and save the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s more specific than that, even - it only needs to do this when the outputs include rendered widget snapshots. I have an idea for how to do it without re-rendering anything.
@minrk I can test it, but I would not be able to tell you if it is the right fix for ipywidgets.