Files
jupyter_contrib_nbextensions/extensions/highlight_html_cfg.py
T

14 lines
570 B
Python

from jupyter_core.paths import jupyter_config_dir, jupyter_data_dir
import os
import sys
sys.path.append(os.path.join(jupyter_data_dir(), 'extensions'))
c = get_config()
c.NbConvertApp.export_format = "html"
c.Exporter.template_path = [ '.', os.path.join(jupyter_data_dir(),'templates'), os.path.join(jupyter_data_dir(), 'nbextensions', 'usability', 'highlighter') ]
c.Exporter.preprocessors = ['pp_highlighter.HighlighterPreprocessor' ]
c.NbConvertApp.postprocessor_class = 'pp_highlighter.HighlighterPostProcessor'
#html
c.Exporter.template_file = 'highlighter.tpl'