pyroll-project / pyroll-core

PyRoll rolling simulation framework - core library.
https://pyroll.readthedocs.io
BSD 3-Clause "New" or "Revised" License
12 stars 7 forks source link

Remove Kaleido #226

Closed axtimhaus closed 4 months ago

axtimhaus commented 5 months ago

To prevent errors by kaleido in default setup (see #195), plotly plots are not converted to static images anymore by default (so kaleido is not needed and therefore dependency can be removed). This also enables interactive elements in .plot() and ._repr_html_().

The plotting API is also refactored to force some figure defaults for both backends. Users of ReprMixin now must only override _plot_plotly_ and/or _plot_matplotlib_ methods to enable plotting. They must return a figure object of the respective backend.