Open aplund opened 1 month ago
To add a bit of context here: I chose to use _ipython_display_
because _repr_*_
requires that you return the required data (eg. raw javascript/html) as opposed to using your own side effect (eg. IPython.display
like we use) as described in the ipython docs. I remember that plotly was having trouble when I tried using _repr_html_
and returning the HTML from the widget, likely because it needed some javascript stuff that wasn't installed/supported. I didn't dig too deep, so it might be doable, but Plotly definitely added pain.
Hmm... this would seem to be more complex than it seems due to the way plotly works. Does plotly give equally weird results when used interactively in the terminal interface?
i can't use much from the terminal because i do all my work on a remote machine so i'm not sure. but probably
Before posting a feature request
Feature details
Currently in
ipython
, lab_dev objects do not display any useful information in the output. I need to manually callrepr
to see something useful.Implementation
It would appear that this occurs because there is the
_ipython_display_
method defined on the objects. This is described in the ipython code as an "escape-hatch" formatter. After IPython 6.1 the_repr_*_
methods are described as the way to get formatted representations of objects. Perhaps this is the way to do this.How important would you say this feature is?
1: Not important. Would be nice to have.
Additional information
No response