mirror of
https://github.com/wassname/jupyter_contrib_nbextensions.git
synced 2026-08-09 12:10:23 +08:00
14 lines
570 B
Python
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'
|