I have a similar use case as yours but I couldn't find any way to export a notebook without its outputs as a dbc or ipython file.What worked for me is to export the notebook as a source file, which creates a .py file. Then I import the .py file back ...