Skip to content

Commit 0c0deb6

Browse files
committed
Specify template name including extension
I think this should work on all versions of nbconvert. Closes gh-93 Alternative to gh-94
1 parent bc383ec commit 0c0deb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbsphinx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def __init__(self, execute='auto', execute_arguments=[],
499499
self._codecell_lexer = codecell_lexer
500500
loader = jinja2.DictLoader({'nbsphinx-rst.tpl': RST_TEMPLATE})
501501
super(Exporter, self).__init__(
502-
template_file='nbsphinx-rst', extra_loaders=[loader],
502+
template_file='nbsphinx-rst.tpl', extra_loaders=[loader],
503503
config= traitlets.config.Config(
504504
{'HighlightMagicsPreprocessor': {'enabled': True}}),
505505
filters={

0 commit comments

Comments
 (0)