Update Plotly.py 5.0 has been released! Check out the full announcement post
It’s been six months since our last Plotly.py release announcement (4.14, back in December), but our team has been hard at work and we’re finally ready to share the fruits of our labour!
The next release of Plotly.py will be 5.0 (a major-version release with some backwards-incompatible changes) because it will be based on Plotly.js 2.0 (itself a major release with some backwards-incompatible changes. That said, we expect that the vast majority of users will be able to upgrade without seeing any issues at all: the incompatible changes are essentially just removals of long-deprecated/undocumented features like the area
trace type, and the dropping of support for old/end-of-life environments such as Internet Explorer 9 and 10, as well as Python 2.7 and 3.5.
A Prebuilt JupyterLab Extension
The major improvement in Plotly.py 5.0 is a much better mechanism for accessing Plotly figures in JupyterLab. JupyterLab 3 added support for “prebuilt” extensions that can be installed via pip
or conda
automatically, and thanks to an epic community pull request, the two Plotly extensions (jupyterlab-plotly
and plotlywidget
) have been combined into one prebuilt extension which lazy-loads the large Plotly.js bundle. The upshot of this is that if you’re using JupyterLab 3, you’ll can just pip install plotly
(once 5.0 is released!) and you’ll always automatically have the right version of the extension loaded!
Try it today: pip install plotly==5.0.0rc2
Yesterday I released the first release candidate for 5.0, which you can install today with pip install plotly==5.0.0rc2
to try out the new extension and let us know if there are any problems with it, or if any of the Plotly.js 2.0 changes have broken anything for you in Plotly.py. Note that this RC of Plotly.py is build on the release of Plotly.js 2.0, so if you have any questions or run into any issues, feel free to reply to this post as a comment below, or open up a Github issue.
Detailed Changelogs
Of course, like any release, there are some bug fixes and new features, which we will announce in more detail once they’re documented. If you want to dig into the details yourself right away, please check out the changelog for Plotly.py and the more-extensive one for Plotly.js. In both cases you’ll want to look at the “unreleased” section at the top to find out what’s in the release candidate.