"""Nbconvert exporter to inline css & js for collapsible_headings.""" from __future__ import print_function from nbconvert.exporters.html import HTMLExporter from traitlets import Dict class ExporterInliner(HTMLExporter): inliner_resources = Dict( {'css': [], 'js': []}, config=True, help='css and js scripts to wrap in html