Skip to content

Commit

Permalink
Specify template name including extension
Browse files Browse the repository at this point in the history
I think this should work on all versions of nbconvert.

Closes gh-93
Alternative to gh-94
  • Loading branch information
takluyver committed Jan 24, 2017
1 parent bc383ec commit 0c0deb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbsphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def __init__(self, execute='auto', execute_arguments=[],
self._codecell_lexer = codecell_lexer
loader = jinja2.DictLoader({'nbsphinx-rst.tpl': RST_TEMPLATE})
super(Exporter, self).__init__(
template_file='nbsphinx-rst', extra_loaders=[loader],
template_file='nbsphinx-rst.tpl', extra_loaders=[loader],
config= traitlets.config.Config(
{'HighlightMagicsPreprocessor': {'enabled': True}}),
filters={
Expand Down

0 comments on commit 0c0deb6

Please sign in to comment.