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

WIP: Add option for displaying figures below cells that create them. #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danielballan
Copy link
Member

@danielballan danielballan commented Feb 10, 2021

Description

It is often useful to place the figure(s) in a tabbed viewer in one cell, rather than "plopping" them into the output area below the currently-running cell. However, there is still a use case for this mode of placing figure "in line" with the work. (Not to be confused with %matplotlib inline which kills interactive pan and zoom.) See #95.

See screenshot below.

TO DO

  • Add option for placing figures below running cell.
  • Embed figures so that they can be viewed if the notebook is opened later. The action item here is probably just to wait for ipympl. They are working on this. Perhaps, while we wait, we could implement %matplotlib inline-like behavior as a stop-gap. That is, when cell execution completes, close the figure and replace it with an embedded PNG.
  • Tests

Motivation and Context

Closes #95. See that issue for motivation and context.

How Has This Been Tested?

Needs tests

Screenshots:

image

Copy link
Member

@mrakitin mrakitin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update!

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.

Use case: place a fresh canvas in the currently-executing Jupyter notebook cell.
2 participants