Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Direct plots and other objects using IPython protocol to notebook #1

@remram44

Description

@remram44

TLDR %matplotlib inline for Vizier 😉

The "IPython protocol" is basically objects exposing _repr_html_(). IPython has a display() method that sends those to the notebook, and similarly does the same for the cell's "output" (last line).

To support everything that works in IPython:

  • Use _repr_html_() to format rich objects for the notebook
  • Need to make sure that calling IPython.display.display() sends objects to our frontend
  • Take the output from the last line of a Python cell and similarly run it through display()
  • Check how matplotlib works (do they just call display()?)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions