Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipped values of RangeWidget #15

Open
akhmerov opened this issue Jan 27, 2015 · 7 comments
Open

Skipped values of RangeWidget #15

akhmerov opened this issue Jan 27, 2015 · 7 comments

Comments

@akhmerov
Copy link

Sometimes the RangeWidget doesn't correctly update the displayed output. I was able to reproduce the behavior with minimal code:

import ipywidgets
ipywidgets.StaticInteract((lambda x: x), x=ipywidgets.RangeWidget(2, 4, 0.2))

Bug description: with the widget above there is no output shown when the slider is set to x=3 or x=4.

This should be something very basic. I know the project is not active for a while, but some pointers to the origin of the error would be greatly appreciated.

@akhmerov
Copy link
Author

Here's a demonstration: http://nbviewer.ipython.org/urls/dl.dropboxusercontent.com/u/763585/ipywidgets_bug.ipynb

The bug is present in the current master branch.

@jakevdp
Copy link
Owner

jakevdp commented Jan 27, 2015

This is likely due to floating point representations in Javascript. The best fix is to refactor the code so that the range values are integers.

@jakevdp jakevdp closed this as completed Jan 27, 2015
@akhmerov
Copy link
Author

akhmerov commented Feb 3, 2015

Do you mind reopening this? It's still a bug even though the origin may be known.

@jakevdp
Copy link
Owner

jakevdp commented Feb 3, 2015

Sure

@jakevdp jakevdp reopened this Feb 3, 2015
@jakevdp
Copy link
Owner

jakevdp commented Feb 3, 2015

I mainly closed it because I've stopped supporting this package, and I don't anticipate anyone coming along to fix it 😄

@akhmerov
Copy link
Author

akhmerov commented Feb 3, 2015

I understand. Just as a quick check: do you use something else nowadays?

On Tue, Feb 3, 2015 at 5:47 PM, Jake Vanderplas notifications@github.com
wrote:

I mainly closed it because I've stopped supporting this package, and I
don't anticipate anyone coming along to fix it [image: 😄]


Reply to this email directly or view it on GitHub
#15 (comment).

@jakevdp
Copy link
Owner

jakevdp commented Feb 3, 2015

I use IPython's built-in HTML widgets. They require a Python kernel so they don't yet allow static output (i.e. nbviewer or HTML-rendered web pages), but that feature is on the roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants