nbconvert preprocessor to extract attachments. Raw. extract_attachments.py. """ A preprocessor that extracts all of the attachments from the notebook file. The extracted attachments are returned in the 'resources' dictionary. Based on the ExtractOutputsProcessor in nbconvert... the license for. nbconvert is.
From within a Jupyter Notebook cell: !jupyter nbconvert --output-dir='./docs' --to html my_notebook_to_be_converted.ipynb. Note that you don't need to use "--to html" to convert a notebook to html because the default output format is html. I've included the argument solely for clarity.