This has been such a popular feature request that I’m posting a quick announcement, rather than waiting for the March Update: We have upgraded Anvil to Plotly version 4!
It’s backwards-compatible, so your existing code still works, but you can now take advantage of
figure_factory, and more! Some of these features are only available in Server Modules (and some of them use
numpy, which only works in Full Python), but of course you can return Plotly chart objects from server modules to client code
Also, to make life easier, Plot components now have a
figure property, so you can assign data and layout at once by giving it a Plotly Figure object.