Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I am trying yo create a cursor slider: it works fine on the local machine, but it's slow on the network.
I am trying several things to improve the slider.
Now, I would like to try disabling events while the canvas is redrawn in response to a previous event, but I don't know how to disable an event once it has been setup. There is a way? Thank you

You must be logged in to vote

Hey, would setting continuous_update=False to your slider work? This will send the event only when you are done moving the slider.

e.g.

from ipywidgets import IntSlider
slider = IntSlider(continous_update=False)

Replies: 1 comment · 2 replies

Comment options

Hey, would setting continuous_update=False to your slider work? This will send the event only when you are done moving the slider.

e.g.

from ipywidgets import IntSlider
slider = IntSlider(continous_update=False)
You must be logged in to vote
2 replies
@martinRenou
Comment options

To answer the question more properly, there is currently no API to remove an event handler, but this would be handy to add. Would you mind opening an issue asking for this feature?

@martinRenou
Comment options

Actually there is an API for removing an event handler:

canvas.on_mouse_move(my_handler)

# Later on remove it
canvas.on_mouse_move(my_handler, remove=True)
Answer selected by martinRenou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💬
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.