Skip to content

Commit

Permalink
BUG: Really use the basic ipynb export template
Browse files Browse the repository at this point in the history
The previous code intended to set the template to basic, but it doesn't
really work and the full template was being used.
  • Loading branch information
punchagan committed May 30, 2016
1 parent 6cf7744 commit 6aa12f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/plugins/compile/ipynb.py
Expand Up @@ -82,9 +82,9 @@ def compile_html_string(self, source, is_two_file=True):
"""Export notebooks as HTML strings."""
if flag is None:
req_missing(['ipython[notebook]>=2.0.0'], 'build this site (compile ipynb)')
HTMLExporter.default_template = 'basic'
c = Config(self.site.config['IPYNB_CONFIG'])
exportHtml = HTMLExporter(config=c)
exportHtml = HTMLExporter(default_template='basic', config=c)
exportHtml.template_file = 'basic'
with io.open(source, "r", encoding="utf8") as in_file:
nb_json = nbformat.read(in_file, current_nbformat)
(body, resources) = exportHtml.from_notebook_node(nb_json)
Expand Down

0 comments on commit 6aa12f9

Please sign in to comment.