Skip to content
Permalink
Browse files

Use basic ipynb template by default

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information...
Kwpolska committed Apr 13, 2018
1 parent e86cb9e commit 9626e7490f93c735e6d84be44f10831fa764d8b5
Showing with 4 additions and 0 deletions.
  1. +2 −0 CHANGES.txt
  2. +2 −0 nikola/plugins/compile/ipynb.py
@@ -4,6 +4,8 @@ New in master
Features
--------

* Use basic ipynb template by default for slightly better apperance
and behavior
* Replace ``flowr.js`` with ``justified-layout.js`` by Flickr
(does not require jQuery!)
* ``bootblog4`` is the new default theme (Issue #2964)
@@ -59,6 +59,8 @@ def _compile_string(self, nb_json):
self._req_missing_ipynb()
c = Config(self.site.config['IPYNB_CONFIG'])
c.update(get_default_jupyter_config())
if 'template_file' not in self.site.config['IPYNB_CONFIG'].get('Exporter', {}):
c['Exporter']['template_file'] = 'basic.tpl' # not a typo
exportHtml = HTMLExporter(config=c)
body, _ = exportHtml.from_notebook_node(nb_json)
return body

0 comments on commit 9626e74

Please sign in to comment.
You can’t perform that action at this time.