Create a nbconvert preprocessor that embeds images in markdown cells as attachments inside the notebook document itself.
Use Case:
Have a single document that includes all referenced images, e.g. for sharing notebooks or exporting to slides without further dependencies.
Questions
Embed local images only or also files referenced by an URL
Add nonstandard options like in kramdown: ![smiley](smiley.png){:height="36px" width="36px"} -> converts to corresponding HTML <img> tag.
Probably not very helpful, as this leads to visual disparity between original and preprocessed notebook.
Convert image types: PDF, SVG -> PNG to make sure images are rendered on less capable devices
Resize images to save space (i.e. set a certain DPI to limit image size)
Idea:
Create a nbconvert preprocessor that embeds images in markdown cells as attachments inside the notebook document itself.
Use Case:
Have a single document that includes all referenced images, e.g. for sharing notebooks or exporting to slides without further dependencies.
Questions
![smiley](smiley.png){:height="36px" width="36px"}
-> converts to corresponding HTML<img>
tag. Probably not very helpful, as this leads to visual disparity between original and preprocessed notebook.