From 4e7972bd64c57065e50f4e811ea00073bf7a212f Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Fri, 20 Dec 2013 19:07:21 -0800 Subject: [PATCH] Remove magic for loading templates from module names --- IPython/nbconvert/exporters/python.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/IPython/nbconvert/exporters/python.py b/IPython/nbconvert/exporters/python.py index b5a4293a1..cd3880d04 100644 --- a/IPython/nbconvert/exporters/python.py +++ b/IPython/nbconvert/exporters/python.py @@ -24,9 +24,10 @@ class PythonExporter(TemplateExporter): """ Exports a Python code file. """ - - file_extension = Unicode( - 'py', config=True, - help="Extension of the file that should be written to disk") + def _file_extension_default(self): + return 'py' + + def _template_file_default(self): + return 'python' output_mimetype = 'text/x-python'