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: Interactive Matplotlib Plots #158

Merged
merged 11 commits into from
Sep 28, 2023
Merged

feat: Interactive Matplotlib Plots #158

merged 11 commits into from
Sep 28, 2023

Conversation

akshayka
Copy link
Contributor

@akshayka akshayka commented Sep 26, 2023

This change makes it possible to render matplotlib plots using matplotlib's interactive backend.

image

A new public API symbol is added: marimo.mpl.interactive

This function takes a figure or axes object and returns Html that renders the plot.

  • Each figure is served by its own webserver
  • When a cell is invalidated by the kernel, its interactive figure servers are torn down (if any)

@vercel
Copy link

vercel bot commented Sep 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2023 9:38pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2023 9:38pm

marimo/__init__.py Outdated Show resolved Hide resolved
marimo/_plugins/stateless/mpl.py Outdated Show resolved Hide resolved
mscolnick
mscolnick previously approved these changes Sep 27, 2023
@akshayka akshayka merged commit a49228d into main Sep 28, 2023
15 checks passed
@akshayka akshayka deleted the ms/interactive-plots branch September 28, 2023 01:27
@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants