fake_exporters.py 442 B

123456789101112131415161718192021
  1. """
  2. Module that define a custom exporter just to test the ability to invoke
  3. nbconvert with full qualified name
  4. """
  5. from traitlets import default
  6. from nbconvert.exporters.html import HTMLExporter
  7. class MyExporter(HTMLExporter):
  8. """
  9. My custom exporter
  10. """
  11. @default('file_extension')
  12. def _file_extension_default(self):
  13. """
  14. The new file extension is `.test_ext`
  15. """
  16. return '.test_ext'