From 499ee9890ad2b37b694ac9e34a0b4454275385d9 Mon Sep 17 00:00:00 2001 From: Jake Vanderplas Date: Tue, 6 Aug 2013 19:18:13 -0700 Subject: [PATCH] Change names for compatibility with IPython 1.0alpha --- liquid_tags/notebook.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/liquid_tags/notebook.py b/liquid_tags/notebook.py index 657ec78..7df9479 100644 --- a/liquid_tags/notebook.py +++ b/liquid_tags/notebook.py @@ -56,7 +56,7 @@ except ImportError: from IPython.nbconvert.filters.highlight import _pygment_highlight from pygments.formatters import HtmlFormatter -from IPython.nbconvert.exporters import BasicHTMLExporter +from IPython.nbconvert.exporters import HTMLExporter from IPython.config import Config from IPython.nbformat import current as nbformat @@ -252,10 +252,11 @@ def notebook(preprocessor, tag, markup): 'SubCell': {'enabled':True, 'start':start, 'end':end}}) - exporter = BasicHTMLExporter(config=c, - filters={'highlight': custom_highlighter}, - transformers=[SubCell], - extra_loaders=[pelican_loader]) + exporter = HTMLExporter(config=c, + template_file='basic', + filters={'highlight2html': custom_highlighter}, + transformers=[SubCell], + extra_loaders=[pelican_loader]) # read and parse the notebook with open(nb_path) as f: