Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
25
venv/Lib/site-packages/nbconvert/tests/fake_exporters.py
Normal file
25
venv/Lib/site-packages/nbconvert/tests/fake_exporters.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
"""
|
||||
Module that define a custom exporter just to test the ability to invoke
|
||||
nbconvert with full qualified name
|
||||
"""
|
||||
|
||||
from traitlets import default
|
||||
|
||||
from nbconvert.exporters.html import HTMLExporter
|
||||
|
||||
|
||||
class MyExporter(HTMLExporter):
|
||||
"""
|
||||
My custom exporter
|
||||
"""
|
||||
|
||||
@default('file_extension')
|
||||
def _file_extension_default(self):
|
||||
"""
|
||||
The new file extension is `.test_ext`
|
||||
"""
|
||||
return '.test_ext'
|
||||
|
||||
@default('template_extension')
|
||||
def _template_extension_default(self):
|
||||
return '.html.j2'
|
Loading…
Add table
Add a link
Reference in a new issue