Merge pull request #8150 from minrk/bigsplit-nbconvert
Big Split: nbconvert -> jupyter_nbconvert
commit
8c8c5905dc
@ -1,31 +0,0 @@
|
||||
"""Python script Exporter class"""
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Copyright (c) 2013, the IPython Development Team.
|
||||
#
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
#
|
||||
# The full license is in the file COPYING.txt, distributed with this software.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Imports
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
from .templateexporter import TemplateExporter
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Classes
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
class PythonExporter(TemplateExporter):
|
||||
"""
|
||||
Exports a Python code file.
|
||||
"""
|
||||
def _file_extension_default(self):
|
||||
return '.py'
|
||||
|
||||
def _template_file_default(self):
|
||||
return 'python'
|
||||
|
||||
output_mimetype = 'text/x-python'
|
||||
Loading…
Reference in new issue