Export a stata_kernel Jupyter notebook to a Stata .do file

read_nb[source]

read_nb(fname)

Read the notebook in fname.

Simpler versions adapted from nbdev

notebook2do[source]

notebook2do(fname)

Create a module file for fname.

simple_doexport[source]

simple_doexport(fname:"A stata_kernel notebook name")

Export notebooks matching fname to Stata .do files

from nbdev.export import notebook2script; notebook2script()