robertstrauss / jupytermosaic

A Jupyter Notebook / Jupyter Lab extension allowing for tiling of cells for a customizable and flexible layout reducing white space.
GNU General Public License v3.0
33 stars 1 forks source link

Is it working with nbconvert? #2

Open pplonski opened 2 years ago

pplonski commented 2 years ago

Thank you for a nice package! Is it working with nbconvert?

Why am I asking? I'm working on a framework for converting a notebook to web app by adding YAML header. The framework is using nbconvert for executing notebooks. It will be nice if there will be an option to arrange cells in the floating layout.

robertstrauss commented 2 years ago

Thanks for your interest in the package!

When rearranged in the tiling layout, cells still have a linear one-by-one execution order. This is the order the notebook comes out as through any nbconvert process. (So the functionality will be correct after export). Surprisingly, this even means when exported to HTML (which could in theory preserve the layout), it is linearized into a normal notebook format. I didn't realize this before, so thanks for bringing my attention to it. It would be a useful feature for me to add, where the html export from nbconvert has the layout of the grid - although I'm not sure how to do that yet.

robertstrauss commented 2 years ago

I'll leave this open as a sort of feature request - some tool to export the html of the mosaic layout.