v3.2.1
[3.2.1] - 2018-09-14
This is a patch release that fixes a few bugs and reintroduces a few
version 2 features that were not supported in version 3.
The bundled version of plotly.js remains at 1.40.1
JupyterLab Versions
For use with JupyterLab, the following versions of the following packages
must be installed:
-
Python Packages
- plotly==3.2.1
- ipywidgets>=7.2
- notebook>=5.3
- jupyterlab==0.34
-
JupyterLab Extensions
- [email protected]
- @jupyter-widgets/[email protected]
- @jupyterlab/[email protected]
Added
- An optional
skip_invalid
argument has been added to theFigure
and
FigureWidget
constructors. By default,skip_invalid
isFalse
and invalid
figure properties will result in an exception (this is identical to the
previous behavior). Whenskip_invalid
is set toTrue
, invalid properties
will instead be silently ignored. This argument replaces the_raise
argument that was available in version 2, and makes it possible to import
figure definitions from different plotly versions, where incompatible
properties are ignored rather than causing an exception. - A
to_ordered_dict
method has been added to theFigure
andFigureWidget
classes. This method returns a representation of the figure as a nested
structure ofOrdererdDict
andlist
instances where the keys in each
OrderedDict
are sorted alphabetically. This method replaces the
get_ordered
method that was available in version 2, and makes it possible
to traverse the nested structure of a figure in a deterministic order.
Fixed
- Pandas
Series
andIndex
objects storingdatetime
values were
incorrectly cast to numeric arrays
(plotly/plotly.py#1160,
plotly/plotly.py#1163) - Numpy arrays with
uint64
datatype caused aFigureWidget
error,
and no figure was displayed
(plotly/plotly.py#1155,
plotly/plotly.py#1163)