__init__.py 819 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. """The main API for the v4 notebook format."""
  2. # Copyright (c) IPython Development Team.
  3. # Distributed under the terms of the Modified BSD License.
  4. from __future__ import annotations
  5. __all__ = [
  6. "nbformat",
  7. "nbformat_minor",
  8. "nbformat_schema",
  9. "new_code_cell",
  10. "new_markdown_cell",
  11. "new_raw_cell",
  12. "new_notebook",
  13. "new_output",
  14. "output_from_msg",
  15. "reads",
  16. "writes",
  17. "to_notebook",
  18. "downgrade",
  19. "upgrade",
  20. ]
  21. from .convert import downgrade, upgrade
  22. from .nbbase import (
  23. nbformat,
  24. nbformat_minor,
  25. nbformat_schema,
  26. new_code_cell,
  27. new_markdown_cell,
  28. new_notebook,
  29. new_output,
  30. new_raw_cell,
  31. output_from_msg,
  32. )
  33. from .nbjson import reads, to_notebook, writes
  34. reads_json = reads
  35. writes_json = writes
  36. to_notebook_json = to_notebook