MyST-NB icon indicating copy to clipboard operation
MyST-NB copied to clipboard

More metdata controlled output formatting

Open chrisjsewell opened this issue 5 years ago • 3 comments

Building on: https://myst-nb.readthedocs.io/en/latest/use/formatting_outputs.html#images

Basically, port my implementations in: https://ipypublish.readthedocs.io/en/latest/metadata_tags.html#cell-output-level

Also, make the top-level key configurable (in conf.py) and change the default from myst to render

cc @akhmerov

chrisjsewell avatar Aug 24 '20 21:08 chrisjsewell

As per ipypublish, we should we also support output level metadata precedence, and possibly even project/notebook level metadata, i.e. when choosing what metadata to use, precedence would be:

output level > cell level > notebook level > project level

chrisjsewell avatar Aug 24 '20 21:08 chrisjsewell

All good things. render seems to be a good default, inheritance likewise. I only had a brief look at the ipypublish metadata; some of it might benefit from reorganization. e.g. slideonly: true could become slides: ignore: true to correspond to the jupyter's output bundle and sphinx builders better.

akhmerov avatar Aug 25 '20 07:08 akhmerov

Oh absolutely, we don't need to take it verbatim, but its useful as a guide for what I've found useful before

chrisjsewell avatar Aug 25 '20 07:08 chrisjsewell