Skip to content

Conversation

@wch
Copy link
Collaborator

@wch wch commented Jan 20, 2024

PR #999 depended on matplotlib's layout engine API, which was added in matplotlib 3.6.

Matplotlib is currently on 3.8, so normally this would be OK. However, the version of Pyodide we're using in Shinylive comes with matplotlib 3.5.2, so plots don't work at all on that platform -- it simply throws an error when fig.get_layout_engine() is called. This PR restores support for older versions of matplotlib.

@has2k1 I'm going to merge this soon to get the dev version of shinylive working again, but please take a look at the PR when you have a chance to make sure it looks good.

@wch wch merged commit 9d0be2d into main Jan 20, 2024
@wch wch deleted the matplotlib-compat branch January 20, 2024 01:04
@has2k1
Copy link
Contributor

has2k1 commented Jan 20, 2024

Retrospectively, this looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants