bqplot.traits.Date

class bqplot.traits.Date(default_value=datetime.datetime(2018, 11, 8, 18, 49, 10, 730352), **kwargs)[source]

A datetime trait type.

Converts the passed date into a string format that can be used to construct a JavaScript datetime.

__init__(default_value=datetime.datetime(2018, 11, 8, 18, 49, 10, 730352), **kwargs)[source]

Declare a traitlet.

If allow_none is True, None is a valid value in addition to any values that are normally valid. The default is up to the subclass. For most trait types, the default value for allow_none is False.

Extra metadata can be associated with the traitlet using the .tag() convenience method or by using the traitlet instance’s .metadata dictionary.

Methods

__init__([default_value]) Declare a traitlet.
class_init(cls, name) Part of the initialization which may depend on the underlying HasDescriptors class.
default_value_repr()
error(obj, value)
get(obj[, cls])
get_default_value() DEPRECATED: Retrieve the static default value for this trait.
get_metadata(key[, default]) DEPRECATED: Get a metadata value.
info()
init_default_value(obj) DEPRECATED: Set the static default value for the trait type.
instance_init(obj) Part of the initialization which may depend on the underlying HasDescriptors instance.
set(obj, value)
set_metadata(key, value) DEPRECATED: Set a metadata key/value.
tag(**metadata) Sets metadata and returns self.
validate(obj, value)

Attributes

allow_none
default_value
info_text
metadata
name
read_only
this_class