Closed kcpevey closed 5 years ago
I should also note that instantiating with default=None, i.e. time_range = param.DateRange(default=None)
will cause NONE of the widgets in the class to be visualized with parambokeh. Even if I have other valid widgets in the same class.
Interesting. I think ParamNB knows about DateRange, but ParamBokeh does not. Usually, what will happen in a case like that is that ParamBokeh will simply display a text widget, which works ok until there is proper support. In this case, yes, Range is supported, and DateRange is a type of Range so it's falling back to that. https://github.com/ioam/parambokeh/pull/72 should force it back to a TextWidget, though that's not actually editable. @ceball may be able to do a better fix...
closing since panel has superseded parambokeh
I'm trying to use the parambokeh widget for
param.DateRange
. From the docs, it looks like I need to feedparam.DateRange
a datetime tuple, but when I try instantiate with a default tuple of datetime objs, I get an error:Results in this error:
If I instantiate the
param.DateRange
withdefault=None
, then set(dt, dt2)
into the object as a tuple, that won't throw an error, but I also don't see a widget.DateRange
is inheriting fromRange
which might be where theTuple(Float, Float)
req is coming from? If so, that seems like a bug.