Skip to content

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

Open
danielballan wants to merge 1 commit intobluesky:masterfrom
danielballan:display-figures-in-cell-output
Open

WIP: Add option for displaying figures below cells that create them.#103
danielballan wants to merge 1 commit intobluesky:masterfrom
danielballan:display-figures-in-cell-output

Conversation

@danielballan
Copy link
Copy Markdown
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
Copy Markdown
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