Problem
I'd like IPython.display.display to work for all the supported mime types.
Repro:
# GET /
from IPython.display import display
display({"a": 1})
Expected output:
{"a": 1}
Actual output:
(nothing)
Proposed Solution
I think adding a bit of code in the notebook handler that mimics what the notebook frontend does would be sufficient. Two places in particular
Additional context
This seems like a common thing that would need to be done either by javascript frontends or python HTML-serving ones. I haven't seen if theres any code available for reuse but am curious if there is any.
I'm happy to take a stab at implementing a bit of this - PR's OK?
Problem
I'd like
IPython.display.displayto work for all the supported mime types.Repro:
Expected output:
Actual output:
Proposed Solution
I think adding a bit of code in the notebook handler that mimics what the notebook frontend does would be sufficient. Two places in particular
display_data(and accumulate them appropriately)Additional context
This seems like a common thing that would need to be done either by javascript frontends or python HTML-serving ones. I haven't seen if theres any code available for reuse but am curious if there is any.
I'm happy to take a stab at implementing a bit of this - PR's OK?