execnb icon indicating copy to clipboard operation
execnb copied to clipboard

Outputs is left as array instead of string

Open dleen opened this issue 3 years ago • 1 comments

Compared to nbformat the outputs field of execnb remains as an array of strings (for compatability with json) instead of being squashed to a single string.

This prevents execnb from being a drop in replace for nbformat at least when using with the nbdime library.

For example see:

https://github.com/dleen/notebook-examples/blob/main/00_core.ipynb

The logic in nbformat for splitting/joining: https://github.com/jupyter/nbformat/blob/640a0c6830bb6dc0ef963a8caab377d89ed24c6a/nbformat/v4/rwbase.py#L26

dleen avatar Aug 13 '22 05:08 dleen

Sorry @dleen I missed this (at-mention me on issues to ensure I don't miss them!)

Any thoughts about how to get the best of both worlds here?

jph00 avatar Sep 03 '22 03:09 jph00