##// END OF EJS Templates
Merge pull request #3749 from minrk/pytransform...
Merge pull request #3749 from minrk/pytransform convert IPython syntax to Python syntax in nbconvert python template adds ipython2python filter and uses it in python.tpl

File last commit:

r11108:1a1aafcf
r11720:14c3b91d merge
Show More
fullhtml.py
39 lines | 1.2 KiB | text/x-python | PythonLexer
"""
Exporter for exporting full HTML documents.
"""
#-----------------------------------------------------------------------------
# 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 .basichtml import BasicHTMLExporter
from IPython.config import Config
#-----------------------------------------------------------------------------
# Classes
#-----------------------------------------------------------------------------
class FullHTMLExporter(BasicHTMLExporter):
"""
Exports a full HTML document.
"""
template_file = Unicode(
'fullhtml', config=True,
help="Name of the template file to use")
@property
def default_config(self):
c = Config({'CSSHTMLHeaderTransformer':{'enabled':True}})
c.merge(super(FullHTMLExporter,self).default_config)
return c