-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
#5 totally derailed and IRkernel/IRkernel#97 makes this urgent so let me get this done:
We want the following functions:
- high level
displaycreating a mimebundle by calling allrepr_*functions on an object, then callingbase_displayon that mimebundle - low level
display_mimebundleanddisplay1functions directly accepting mimebundle-like lists - high level
display_*convenience functions for a single object or file.
more questions:
-
should we call
base_displayonly with base64 encoded text strings or also with raw vectors and rely on simplejson automatically base64’ing those? -
i like the
...API instead of a dedicated list: which should we do:-
display_mimebundle(list('application/png' = bar, 'image/png' = foo), metadata = list( 'image/png' = list(width = 400)))
-
display_mimebundle('application/png' = bar, 'image/png' = foo, metadata = list( 'image/png' = list(width = 400)))
-
display_mimebundle('application/png' = bar, 'image/png' = list(foo, width = 400))
the latter of course would also accept a dedicated
metadataparameter. -
change in IRkernel: jupyter.result_mimetypes → jupyter.display_mimetypes
…which we then use here in the new display function to determine which reprs to call
since IRkernel sets the option (if not also set) and this project doesn’t depend on IRkernel: should this project also set a default for that option?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels