diff --git a/IPython/nbconvert/exporters/export.py b/IPython/nbconvert/exporters/export.py index 92fdd5f..0d47f65 100755 --- a/IPython/nbconvert/exporters/export.py +++ b/IPython/nbconvert/exporters/export.py @@ -23,7 +23,6 @@ from .fullhtml import FullHTMLExporter from .latex import LatexExporter from .markdown import MarkdownExporter from .python import PythonExporter -from .python_armor import PythonArmorExporter from .reveal import RevealExporter from .rst import RstExporter from .sphinx_howto import SphinxHowtoExporter @@ -83,7 +82,6 @@ __all__ = [ 'export_latex', 'export_markdown', 'export_python', - 'export_python_armor', 'export_reveal', 'export_rst', 'export_by_name' @@ -182,14 +180,6 @@ def export_python(nb, config=None, transformers=None, filters=None): @DocDecorator -def export_python_armor(nb, config=None, transformers=None, filters=None): - """ - Export a notebook object to Python (Armor) - """ - return export(PythonArmorExporter, nb, config, transformers, filters) - - -@DocDecorator def export_reveal(nb, config=None, transformers=None, filters=None): """ Export a notebook object to Reveal diff --git a/IPython/nbconvert/exporters/python_armor.py b/IPython/nbconvert/exporters/python_armor.py deleted file mode 100644 index 0130b8a..0000000 --- a/IPython/nbconvert/exporters/python_armor.py +++ /dev/null @@ -1,32 +0,0 @@ -""" -Exporter that exports a Python-Armor code file (.py) -""" - -#----------------------------------------------------------------------------- -# 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 IPython.utils.traitlets import Unicode - -from .python import PythonExporter - -#----------------------------------------------------------------------------- -# Classes -#----------------------------------------------------------------------------- - -class PythonArmorExporter(PythonExporter): - """ - Exports a Python-Armor code file (.py) - """ - - template_file = Unicode( - 'python_armor', config=True, - help="Name of the template file to use") diff --git a/IPython/nbconvert/templates/python_armor.tpl b/IPython/nbconvert/templates/python_armor.tpl deleted file mode 100644 index 6deb991..0000000 --- a/IPython/nbconvert/templates/python_armor.tpl +++ /dev/null @@ -1,31 +0,0 @@ -{%- extends 'python.tpl' -%} - -{#% block any_cell %} -============================== -=======start {{cell.type}}========= -{{ super() }} -======= end {{cell.type}} ========= -=============================={% endblock any_cell %#} - - - -{% block markdowncell %}---- Start MD ----{{ super() }} ----- End MD ---- -{% endblock markdowncell %} - -{% block codecell %}---- Start Code ----{{ super() }} ----- End Code ---- -{% endblock codecell %} - -{% block headingcell scoped %}---- Start heading ----{{ super() }} ----- End heading ---- -{% endblock headingcell %} - -{% block rawcell scoped %}---- Start Raw ---- -{{ super() }} ----- End Raw ----{% endblock rawcell %} - -{% block unknowncell scoped %} -unknown type {{cell.type}} -{% endblock unknowncell %} -