This release introduces the long-anticipated ability to programmatically
export figures as high quality static images in both raster and vector
formats.
JupyterLab Versions (Python 3.5+)
For use with JupyterLab, the following versions of the following packages
must be installed:
- Python Packages
- plotly==3.2.0
- ipywidgets>=7.2
- notebook>=5.3
- jupyterlab==0.34
- JupyterLab Extensions
- plotlywidget0.3.0
- jupyter-widgets/jupyterlab-manager0.37
- jupyterlab/plotly-extension0.17
Added
- plotly.js version 1.40.1, which introduces the following features:
- Allow `contour`, `contourcarpet` and `histogram2dcontour` to have corresponding legend items using `showlegend`
([plotly/plotly.js2891](https://github.com/plotly/plotly.js/pull/2891),
[plotly/plotly.js2914](https://github.com/plotly/plotly.js/pull/2914))
- Add scatterpolar and scatterpolargl attributes `r0`, `dr`, `theta0` and `dtheta`
([plotly/plotly.js2895](https://github.com/plotly/plotly.js/pull/2895))
- Add layout attributes `piecolorway` and `extendpiecolors` for more control over pie colors
([plotly/plotly.js2870](https://github.com/plotly/plotly.js/pull/2870))
- Add `splom` attribute `dimensions[i].axis.type` to easily override axis type in splom-generated axes
([plotly/plotly.js2899](https://github.com/plotly/plotly.js/pull/2870))
- Add support for on-graph text in `scatterpolargl` traces
([plotly/plotly.js2895](https://github.com/plotly/plotly.js/pull/2895))
- See [the plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#1400----2018-08-16)
for bug fixes and more information.
- Support for offline static image export with the `to_image` and `write_image`
functions in the new `plotly.io` package ([1120](https://github.com/plotly/plotly.py/pull/1120)).
- Note: Image export requires the plotly [orca](https://github.com/plotly/orca)
command line utility and the [`psutil`](https://github.com/giampaolo/psutil) Python package.
- New documentation sections covering [Static Image Export](https://plot.ly/python/static-image-export/)
and [Orca Management](https://plot.ly/python/orca-management/)
- Support for displaying `FigureWidget` instances in static contexts
(e.g. [nbviewer](http://nbviewer.jupyter.org/)) just like the built-in ipywidgets
([1117](https://github.com/plotly/plotly.py/pull/1117))
- Full integration of the Cividis colorscale ([883](https://github.com/plotly/plotly.py/pull/883))
- conda packaging
- From here forward, new versions of plotly.py will be published to the [plotly anaconda channel](https://anaconda.org/plotly/)
on the same day they are published to PyPI.
([72ad0e4](https://github.com/plotly/plotly.py/commit/72ad0e4bf54bb8a06445d2ca55488ffc11c836a7))
- The [`README`](packages/python/plotly-geo/README.md) now includes conda installation instructions alongside the pip instructions.
- In addition to the existing installation approaches, orca is now also available as a
[conda package](https://anaconda.org/plotly/plotly-orca) from the plotly anaconda channel.
Updated
- Show traces at the top of the Gantt chart's colorbar ([1110](https://github.com/plotly/plotly.py/pull/1110))
- Significantly improved validation performance for numeric pandas `Series` objects ([1149](https://github.com/plotly/plotly.py/pull/1149))
- Specialize auto-generated docstrings for Python syntax
- More robust and specific logic for retrying requests to the plot.ly cloud service ([1146](https://github.com/plotly/plotly.py/pull/1146))
- Support basic authentication when using the streaming API behind a proxy server ([1133](https://github.com/plotly/plotly.py/pull/1133))
Fixed
- Validators for `dash` properties (e.g. `scatter.line.dash`) incorrectly rejected dash length lists ([1136](https://github.com/plotly/plotly.py/pull/1136))
- Annotated heatmap error when custom colorscale was specified ([1151](https://github.com/plotly/plotly.py/pull/1151))
- Incorrect deprecation warning for deprecated `plotly.graph_objs.Annotations` class ([1138](https://github.com/plotly/plotly.py/pull/1138))
- Harmless JavaScript console error when opening an html file produced by `plotly.offline.plot` ([1152](https://github.com/plotly/plotly.py/pull/1152))
- Incorrect validation errors when writing data to the streaming API ([1145](https://github.com/plotly/plotly.py/pull/1145))