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

pn.widgets.DatetimeRangeInput doesn't accept format parameter #1848

Closed
Adam-D-Lewis opened this issue Dec 16, 2020 · 0 comments · Fixed by #2043
Closed

pn.widgets.DatetimeRangeInput doesn't accept format parameter #1848

Adam-D-Lewis opened this issue Dec 16, 2020 · 0 comments · Fixed by #2043
Milestone

Comments

@Adam-D-Lewis
Copy link

Adam-D-Lewis commented Dec 16, 2020

ALL software version info

Name Version Build Channel
bokeh 2.2.3 py39hf3d152e_0 conda-forge
panel 0.10.2 pyhd8ed1ab_0 conda-forge
python 3.9.1 hffdb5ce_1_cpython conda-forge

Description of expected behavior and the observed behavior

According to the docs Datetimerangeinput should accept a format parameter, but it doesn't seem to do anything in practice.

Complete, minimal, self-contained example code that reproduces the issue

import panel as pn
import datetime as dt
pn.extension()

datetime_range_slider = pn.widgets.DatetimeRangeInput(
    format='%Y-%m-%d %H:%m:%S %Z',
    name='Datetime Range Input',
    value=(dt.datetime.now(), dt.datetime.now()),
    width=300
)

Stack traceback and/or browser JavaScript console output

WARNING:param.DatetimeRangeInput00010: Setting non-parameter attribute format=%Y-%m-%d %H:%m:%S %Z using a mechanism intended only for parameters

Screenshots or screencasts of the bug in action

image

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

Successfully merging a pull request may close this issue.

2 participants