base.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. """Global configuration class."""
  2. # Copyright (c) Jupyter Development Team.
  3. # Distributed under the terms of the Modified BSD License.
  4. from traitlets import List, Unicode
  5. from traitlets.config.configurable import LoggingConfigurable
  6. class NbConvertBase(LoggingConfigurable):
  7. """Global configurable class for shared config
  8. Useful for display data priority that might be used by many transformers
  9. """
  10. display_data_priority = List(
  11. [
  12. "text/html",
  13. "application/pdf",
  14. "text/latex",
  15. "image/svg+xml",
  16. "image/png",
  17. "image/jpeg",
  18. "text/markdown",
  19. "text/plain",
  20. ],
  21. help="""
  22. An ordered list of preferred output type, the first
  23. encountered will usually be used when converting discarding
  24. the others.
  25. """,
  26. ).tag(config=True)
  27. default_language = Unicode(
  28. "ipython",
  29. help="Deprecated default highlight language as of 5.0, please use language_info metadata instead",
  30. ).tag(config=True)