I am trying to use the Python API to convert notebooks from within a program. I have no problem using the command line nbconvert, but can't find any examples anywhere of NbConvertApp used (rather than documented). Does someone know what the Python equivalent of this command line statement would be:
jupyter nbconvert --to python my_notebook.ipynb
I am trying things like:
from nbconvert import nbconvertapp
x.convert_single_notebook('my_notebook.ipynb')
but am getting errors that do not occur on the command line. It would be useful if the documentation had a few or even one example(s) of this API in use.
Thanks,
Rick