Skip to content

Commit df80757

Browse files
authored
Merge pull request getnikola#3020 from getnikola/ipynb-basic-template
Use basic ipynb template by default for slightly better appearance and behavior
2 parents 987f186 + bb7fe3f commit df80757

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ New in master
44
Features
55
--------
66

7+
* Use basic ipynb template by default for slightly better appearance
8+
and behavior
79
* Fixing behavior of RSS_PATH to do what the documentation
810
says it does (Issue #3024)
911
* Add support for fragments in path handlers (Issue #3032)

nikola/plugins/compile/ipynb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def _compile_string(self, nb_json):
5959
self._req_missing_ipynb()
6060
c = Config(self.site.config['IPYNB_CONFIG'])
6161
c.update(get_default_jupyter_config())
62+
if 'template_file' not in self.site.config['IPYNB_CONFIG'].get('Exporter', {}):
63+
c['Exporter']['template_file'] = 'basic.tpl' # not a typo
6264
exportHtml = HTMLExporter(config=c)
6365
body, _ = exportHtml.from_notebook_node(nb_json)
6466
return body

0 commit comments

Comments
 (0)