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

DateSlider does not seem to update its value property #753

Closed
odedbadt opened this issue Nov 7, 2019 · 4 comments
Closed

DateSlider does not seem to update its value property #753

odedbadt opened this issue Nov 7, 2019 · 4 comments
Labels
TRIAGE Default label for untriaged issues

Comments

@odedbadt
Copy link

odedbadt commented Nov 7, 2019

FOLLOW THESE INSTRUCTIONS CAREFULLY

ISSUES THAT DO NOT CONTAIN NECESSARY INFORMATION MAY BE CLOSED, IMMEDIATELY

The issue tracker is NOT the place for general support. For questions and technical assistance, ask us on Gitter.

For defects or deficiencies, please provide ALL OF THE FOLLOWING:

ALL software version info (Panel, bokeh, python, notebook, OS, browser, any other relevant packages)

OS: OSx Mojave 10.14.6
Python: 3.7.3
Browser: FF 69.0.1
Packages:
bokeh 1.3.4 py37_0 conda-forge
ipywidgets 7.5.1 py_0 conda-forge
jupyter 1.0.0 py_2 conda-forge
matplotlib 3.1.1 py37_1 conda-forge
notebook 6.0.1 py37_0 conda-forge
pandas 0.25.3 py37h4f17bb1_0 conda-forge
panel 0.6.0 1 conda-forge
python 3.7.3 h359304d_0

As documented in the dateslider dodumentation (https://panel.pyviz.org/reference/widgets/DateSlider.html), after sliding the slider, the value property of the slider is expected to update. I ran the notebook provided in the example and played around with the slider a bit, checked the value and it did not change. Tried using "date"s instead of "datetime"s and it didn't do the trick. I might be doing something wrong, in that case it might be beneficial to document my pitfall. But it seems that the rest of the examples went pretty smooth (incl. DateRangeSlider)

Code ( as copied from example provided in DateSlider doc):

import datetime as dt
import panel as pn

pn.extension()

date_slider = pn.widgets.DateSlider(name='Date Slider', start=dt.datetime(2019, 1, 1), end=dt.datetime(2019, 6, 1), value=dt.datetime(2019, 2, 8))

date_slider
# Play around with the slider
# Check the "value" property
date_slider.value

Stack traceback and/or browser JavaScript console output

Screenshots or screencasts of the bug in action

Screen Shot 2019-11-07 at 16 06 20

@odedbadt odedbadt added the TRIAGE Default label for untriaged issues label Nov 7, 2019
@xavArtley
Copy link
Collaborator

Hello
I can't reproduce:
image

@philippjfr
Copy link
Member

What's your version of Param?

@odedbadt
Copy link
Author

odedbadt commented Nov 7, 2019

param 1.9.2 py_0 conda-forge

@odedbadt
Copy link
Author

odedbadt commented Nov 7, 2019

Short update: on the same machine but with a fresh conda environment everything works as expected. Must be some corruption in my env.

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

No branches or pull requests

3 participants