You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
This seems like it might be overkill. Admittedly, if matplotlib exposes this functionality and we can just plug it in to Vizier, that's great. However, doesn't VisTrails already have workflow steps for plotting?
Well we don't have to do all of this. Simply formatting "rich objects" by calling _repr_html_() should definitely be added since it is so easy.
Admittedly providing the IPython display() interface is a bit more involved, and might not be required, but I think that letting the users call matplotlib from their Python cells would be appreciated.
TLDR
%matplotlib inline
for Vizier 😉The "IPython protocol" is basically objects exposing
_repr_html_()
. IPython has adisplay()
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:
_repr_html_()
to format rich objects for the notebookIPython.display.display()
sends objects to our frontendipykernel
sets aDisplayPublisher
(andInteractiveShell
). By their own admittance, this part of IPython is not very well factored.display()
display()
?)ipykernel
sets$MPLBACKEND
tomodule://ipykernel.pylab.backend_inline
with ashow()
that callsdisplay()
, so every figure created is sent to the notebookThe text was updated successfully, but these errors were encountered: