nbformat icon indicating copy to clipboard operation
nbformat copied to clipboard

Metadata fields on stream and error outputs

Open rgbkrk opened this issue 8 years ago • 5 comments

I'd like to support metadata fields on all the output types. The ones that can't currently are stream and error.

/cc @craigcitro, who I talked to about this yesterday

rgbkrk avatar Feb 09 '17 01:02 rgbkrk

👍

blink1073 avatar Feb 09 '17 01:02 blink1073

Yes, this would be really helpful for us, too. (More helpful than my slow reply would suggest!)

In particular, in Colaboratory, we use metadata on stream outputs, in order to do various forms of output control. We actually didn't realize at first that this was invalid, so we do some gyrations to always ensure this metadata is dropped when writing notebooks out to disk.

craigcitro avatar Feb 14 '17 17:02 craigcitro

Thinking on this one after a nice week with the Jupyter devs, how would we merge metadata (if merging streams, like is done in the notebook).

rgbkrk avatar Jun 02 '17 01:06 rgbkrk

@craigcitro -- how does metadata get combined if multiple stdout messages come in (that can be "merged" into one, since it's a terminal representation).

rgbkrk avatar Jan 06 '20 22:01 rgbkrk

At least for colab, we only merge if the messages have identical metadata.

craigcitro avatar Jan 15 '20 18:01 craigcitro