mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Make output_mimetype accessible from the class.
Traitlets are only accessible by instantiating the class. There's no clear reason that this needs to be a traitlet, anyway.
This commit is contained in:
parent
c2644a20be
commit
47e9aad022
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user