question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

All output_area elements are getting rerender on a notebook save

See original GitHub issue

We 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.

/cc @SylvainCorlay @parente

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
minrkcommented, May 11, 2016

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.

0reactions
lbustelocommented, May 19, 2016

@minrk I can test it, but I would not be able to tell you if it is the right fix for ipywidgets.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found