Skip to content

Embed image on save - #294

Closed
martinRenou wants to merge 1 commit into
matplotlib:masterfrom
martinRenou:embed_image
Closed

martinRenou wants to merge 1 commit into
matplotlib:masterfrom
martinRenou:embed_image

Conversation

@martinRenou

@martinRenou martinRenou commented Jan 16, 2021 •

Copy link
Copy Markdown
Member

This is an attempt to embed the Image state on Notebook save (JupyterLab only for now, we can maybe do something similar in Jupyter Notebook classic).

The logic here is to:

  • Hook up to the "save" event of the Notebook
  • Go through all outputs and find matplotlib widgets
  • Replace the widget output into plain html image

See #150 #16

@martinRenou

Copy link
Copy Markdown
Member Author

This doesn't work yet. I am opening the PR as a draft for heads up/

This was referenced Jan 16, 2021
@lgtm-com

lgtm-com Bot commented Jan 16, 2021

Copy link
Copy Markdown

This pull request introduces 2 alerts when merging 8587f22 into ac0a7c3 - view on LGTM.com

new alerts:

  • 2 for Missing variable declaration

@martinRenou

Copy link
Copy Markdown
Member Author

Might be replaced by #300

@martinRenou

Copy link
Copy Markdown
Member Author

Closing as outdated. We will try another approach for saving a static representation of the plot #343

@martinRenou
martinRenou deleted the embed_image branch September 14, 2021 15:45
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