Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/nbformat/v4/__init__.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""The main API for the v4 notebook format."""
3# Copyright (c) IPython Development Team.
4# Distributed under the terms of the Modified BSD License.
5from __future__ import annotations
7__all__ = [
8 "nbformat",
9 "nbformat_minor",
10 "nbformat_schema",
11 "new_code_cell",
12 "new_markdown_cell",
13 "new_raw_cell",
14 "new_notebook",
15 "new_output",
16 "output_from_msg",
17 "reads",
18 "writes",
19 "to_notebook",
20 "downgrade",
21 "upgrade",
22]
24from .convert import downgrade, upgrade
25from .nbbase import (
26 nbformat,
27 nbformat_minor,
28 nbformat_schema,
29 new_code_cell,
30 new_markdown_cell,
31 new_notebook,
32 new_output,
33 new_raw_cell,
34 output_from_msg,
35)
36from .nbjson import reads, to_notebook, writes
38reads_json = reads
39writes_json = writes
40to_notebook_json = to_notebook