Skip to content

Change in IPYWidgets Caused TraitError in Dashboard Sample #276

Closed
@chrislope

Description

@chrislope

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions