As suggested here:
import nbdev nbdev.export.nb_export('app.ipynb', 'app') print('Export successful')