I would like to programmatically generate some *.ipnb as part of my modeling work, so that i can dump annotated figures and code with markdown annotation to a public git repo. Ideally, I will create a new notebook and publish it every time I run new models.
from this gist, i found a pattern for doing this that involves: from IPython.nbformat import current as nbf
However, IPython.nbformat.current has been deprecated since last spring, and in fact is not present in jupyter/ipython 4.0.1, so this won't work for me.
What's the right pattern for this now?