diff --git a/IPython/nbconvert/exporters/python.py b/IPython/nbconvert/exporters/python.py index 750b0ac39..b5a4293a1 100644 --- a/IPython/nbconvert/exporters/python.py +++ b/IPython/nbconvert/exporters/python.py @@ -29,5 +29,4 @@ class PythonExporter(TemplateExporter): 'py', config=True, help="Extension of the file that should be written to disk") - def _output_mimetype_default(self): - return 'text/x-python' + output_mimetype = 'text/x-python'