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.

Unable to display sliders or plots render very slowly

See original GitHub issue

Hello,

I have been experimenting with ipywidgets, and have run into very limited success. At first, I was able to properly run a widget with a single float slider, and it would perform perfectly and update real time. However, after copying the code over to another notebook, the slider disappeared and I only had a single frame/plot. Now even testing the basic code from the tutorial does not display sliders.

ipywidgets

I am unsure if I properly installed everything, as I have to pip3 install ipywidgets, otherwise it stats that no module is found for ipywidgets. I am currently on version 7.2.1 for ipywidgets and 3.2.1 for widgetsnbextension.

When trying to debug this issue, I ran into ‘widget javascript not detected’, ‘jupyter widget could not be displayed because the widget state could not be found’, and now ‘ERROR | No such comm target registered: jupyter.widget.version’. After trial and error experimenting with various versions, I managed to have the sliders in working order again, but the plot would update extremely slowly, and collect a queue of events to process, even for very low computational plots.

Any help would be greatly appreciated, thanks!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
patrickrchaocommented, May 18, 2018

Thank you all so much for the suggestions! I think the continuous_update=False works okay, but I had mixed effects with the throttling and an error when trying to implementing the debouncing command, about lack of the function get_ioloop(), although it may just be on my end.

Is there any reason why the sliders maintain a queue of inputs? If I continuously move the slider back and forth very quickly, the updates will not keep up and continue through the queue of events slowly. To me this does not really make sense, as it would seem more intuititve to complete the most recent actions and update to the current state.

0reactions
hadimcommented, Nov 26, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Slow rendering of image + slider with Plotly JS - Stack Overflow
Here is a full example with two sliders : one that changes the opacity of the heatmap and another one that doesn't touch...
Read more >
Slow rendering - Android Developers
If your app suffers from slow UI rendering, then the system is forced to skip frames and the user will perceive stuttering in...
Read more >
How to Speed Up Your Slider
In this article I'll show you how to check your site's speed and how to speed up your sliders. What can slow down...
Read more >
How to speed up your site? - Smart Slider Documentation
A small image can slow your site and have have a big size if its quality is too good. After a given quality...
Read more >
App Slow With UIAxes - MATLAB Answers - MathWorks
I'm creating apps on app designer which use components such as sliders to control a plot. When plotting on a UIAxes, there is...
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