Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve matplotlib support - mimic Jupyter #540

Merged
merged 4 commits into from
Mar 11, 2024

Conversation

maartenbreddels
Copy link
Contributor

feat: improve matplotlib support - as Jupyter

Several improvements:

Default backend

We do this by checking if the env var 'MPLBACKEND' is not set, and if so, we set it to
module://matplotlib_inline.backend_inline

Support for display(figure)

This makes it behave more like the Jupyter notebook environment.

Support matplotlib pylab interface in solara server

This makes code that 'just works' in the notebook also work in solara
server. We patch global dicts with scoped dicts.

See #539

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @maartenbreddels and the rest of your teammates on Graphite Graphite

@maartenbreddels maartenbreddels changed the title feat: select matplotlib inline backend by default in server feat: improve matplotlib support - mimic Jupyter Mar 6, 2024
@maartenbreddels maartenbreddels force-pushed the feat-matplotlib-as-jupyter branch 3 times, most recently from 2de1d21 to 6cec12f Compare March 7, 2024 12:51
@maartenbreddels maartenbreddels marked this pull request as ready for review March 8, 2024 12:40
We do this by checking if the env var 'MPLBACKEND' is not set, and if so, we set it to
module://matplotlib_inline.backend_inline
This makes it behave more like the Jupyter notebook environment.
This makes code that 'just works' in the notebook also work in solara
server.
@maartenbreddels maartenbreddels merged commit fce107f into master Mar 11, 2024
24 of 27 checks passed
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.

1 participant