NBDev Non Lib Exports

Nbdev export of notebooks that aren’t libraries
FastHTML
Python
Web Development
Nbdev
Author

Isaac Flath

Published

September 21, 2024

Today I Learned

nbdev has a single notebook export command that allows you to export notebooks without them being treated as a library.

This is done with the command nb_export.

In order to apply this to a directory and export them to an app for building FastHTML apps in notbooks, the command is find nbs -name "*.ipynb" -print0 | xargs -0 -I {} nb_export --lib_path app {}