Skip to content

Change in IPYWidgets Caused TraitError in Dashboard Sample #276

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

Closed
chrislope opened this issue Jul 26, 2018 · 0 comments
Closed

Change in IPYWidgets Caused TraitError in Dashboard Sample #276

chrislope opened this issue Jul 26, 2018 · 0 comments

Comments

@chrislope
Copy link

chrislope commented Jul 26, 2018

I'm totally new with all of this, so I'm not confident enough in my abilities to attempt to do the local fork/fix/pull process. I'm even pleasantly surprised I figured out what the problem was to begin with, haha.

It appears that a change in IPYWidgets happened after your sample dashboard project was created. The readout_format in cells 22 and 23 create the slider as:

widgets.IntSlider(value=oldindex, min=0,max=10, #len(df) - 1, step=1, description='Older:', disabled=False, continuous_update=True, orientation='horizontal', readout=False, readout_format='i', slider_color='white')

IPYWidgets throws up a TraitError.

I found the following issue on the Jupyter Widgets GIT which had a similar error reported. The previous version silently dropped the invalid "i" read_out format.

The corrected code for those cells should now be:

widgets.IntSlider(value=oldindex, min=0,max=10, #len(df) - 1, step=1, description='Older:', disabled=False, continuous_update=True, orientation='horizontal', readout=False, readout_format='', slider_color='white')

Thanks!

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