__init__.py 931 B

123456789101112131415161718192021
  1. """The main module for the v1 notebook format."""
  2. # -----------------------------------------------------------------------------
  3. # Copyright (C) 2008-2011 The IPython Development Team
  4. #
  5. # Distributed under the terms of the BSD License. The full license is in
  6. # the file LICENSE, distributed as part of this software.
  7. # -----------------------------------------------------------------------------
  8. # -----------------------------------------------------------------------------
  9. # Imports
  10. # -----------------------------------------------------------------------------
  11. from __future__ import annotations
  12. from .convert import upgrade
  13. from .nbbase import NotebookNode, new_code_cell, new_notebook, new_text_cell
  14. from .nbjson import reads as read_json
  15. from .nbjson import reads as reads_json
  16. from .nbjson import to_notebook as to_notebook_json
  17. from .nbjson import writes as write_json
  18. from .nbjson import writes as writes_json