--- /tmp/nbformat-5.1.3-17rd21ch9/debian/python-nbformat-doc_5.1.3-1_all.deb +++ python-nbformat-doc_5.1.3-1_all.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2021-08-15 19:44:00.000000 debian-binary │ -rw-r--r-- 0 0 0 1448 2021-08-15 19:44:00.000000 control.tar.xz │ --rw-r--r-- 0 0 0 44988 2021-08-15 19:44:00.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 44984 2021-08-15 19:44:00.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ ├── data.tar.xz │ ├── data.tar │ │ ├── file list │ │ │ @@ -19,15 +19,15 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 42 2017-05-15 18:58:47.000000 ./usr/share/doc/python-nbformat-doc/html/_static/custom.css │ │ │ -rw-r--r-- 0 root (0) root (0) 353 2021-08-15 19:44:00.000000 ./usr/share/doc/python-nbformat-doc/html/_static/documentation_options.js │ │ │ -rw-r--r-- 0 root (0) root (0) 286 2021-01-01 06:53:29.000000 ./usr/share/doc/python-nbformat-doc/html/_static/file.png │ │ │ -rw-r--r-- 0 root (0) root (0) 7791 2021-06-13 20:22:59.000000 ./usr/share/doc/python-nbformat-doc/html/_static/forkme_right_darkblue_121621.png │ │ │ -rw-r--r-- 0 root (0) root (0) 90 2021-01-01 06:53:29.000000 ./usr/share/doc/python-nbformat-doc/html/_static/minus.png │ │ │ -rw-r--r-- 0 root (0) root (0) 90 2021-01-01 06:53:29.000000 ./usr/share/doc/python-nbformat-doc/html/_static/plus.png │ │ │ -rw-r--r-- 0 root (0) root (0) 4780 2021-08-15 19:44:00.000000 ./usr/share/doc/python-nbformat-doc/html/_static/pygments.css │ │ │ --rw-r--r-- 0 root (0) root (0) 33350 2021-08-15 19:44:00.000000 ./usr/share/doc/python-nbformat-doc/html/api.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 33358 2021-08-15 19:44:00.000000 ./usr/share/doc/python-nbformat-doc/html/api.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3927 2021-08-15 19:44:00.000000 ./usr/share/doc/python-nbformat-doc/html/changelog.html.gz │ │ │ -rw-r--r-- 0 root (0) root (0) 36658 2021-08-15 19:44:00.000000 ./usr/share/doc/python-nbformat-doc/html/format_description.html │ │ │ -rw-r--r-- 0 root (0) root (0) 9155 2021-08-15 19:44:00.000000 ./usr/share/doc/python-nbformat-doc/html/genindex.html │ │ │ -rw-r--r-- 0 root (0) root (0) 7819 2021-08-15 19:44:00.000000 ./usr/share/doc/python-nbformat-doc/html/index.html │ │ │ -rw-r--r-- 0 root (0) root (0) 8690 2021-08-15 19:44:00.000000 ./usr/share/doc/python-nbformat-doc/html/markup.html │ │ │ -rw-r--r-- 0 root (0) root (0) 733 2021-08-15 19:44:00.000000 ./usr/share/doc/python-nbformat-doc/html/objects.inv │ │ │ -rw-r--r-- 0 root (0) root (0) 3676 2021-08-15 19:44:00.000000 ./usr/share/doc/python-nbformat-doc/html/py-modindex.html │ │ ├── ./usr/share/doc/python-nbformat-doc/html/api.html │ │ │ @@ -42,17 +42,17 @@ │ │ │

Read a notebook from a file as a NotebookNode of the given version.

│ │ │

The string can contain a notebook of any version. │ │ │ The notebook will be returned as_version, converting, if necessary.

│ │ │

Notebook format errors will be logged.

│ │ │
│ │ │
Parameters
│ │ │
    │ │ │ -
  • fp (file or str) – A file-like object with a read method that returns unicode (use │ │ │ +

  • fp (file or str) – A file-like object with a read method that returns unicode (use │ │ │ io.open() in Python 2), or a path to a file.

  • │ │ │ -
  • as_version (int) – The version of the notebook format to return. │ │ │ +

  • as_version (int) – The version of the notebook format to return. │ │ │ The notebook will be converted, if necessary. │ │ │ Pass nbformat.NO_CONVERT to prevent conversion.

  • │ │ │
│ │ │
│ │ │
Returns
│ │ │

nb – The notebook that was read.

│ │ │
│ │ │ @@ -69,15 +69,15 @@ │ │ │

The string can contain a notebook of any version. │ │ │ The notebook will be returned as_version, converting, if necessary.

│ │ │

Notebook format errors will be logged.

│ │ │
│ │ │
Parameters
│ │ │
    │ │ │
  • s (unicode) – The raw unicode string to read the notebook from.

  • │ │ │ -
  • as_version (int) – The version of the notebook format to return. │ │ │ +

  • as_version (int) – The version of the notebook format to return. │ │ │ The notebook will be converted, if necessary. │ │ │ Pass nbformat.NO_CONVERT to prevent conversion.

  • │ │ │
│ │ │
│ │ │
Returns
│ │ │

nb – The notebook that was read.

│ │ │
│ │ │ @@ -100,17 +100,17 @@ │ │ │ nbformat.write(nb, fp, version=nbformat.NO_CONVERT, **kwargs) │ │ │

Write a notebook to a file in a given nbformat version.

│ │ │

The file-like object must accept unicode input.

│ │ │
│ │ │
Parameters
│ │ │
    │ │ │
  • nb (NotebookNode) – The notebook to write.

  • │ │ │ -
  • fp (file or str) – Any file-like object with a write method that accepts unicode, or │ │ │ +

  • fp (file or str) – Any file-like object with a write method that accepts unicode, or │ │ │ a path to write a file.

  • │ │ │ -
  • version (int, optional) – The nbformat version to write. │ │ │ +

  • version (int, optional) – The nbformat version to write. │ │ │ If nb is not this version, it will be converted. │ │ │ If unspecified, or specified as nbformat.NO_CONVERT, │ │ │ the notebook’s own version will be used and no conversion performed.

  • │ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -120,15 +120,15 @@ │ │ │ nbformat.writes(nb, version=nbformat.NO_CONVERT, **kwargs) │ │ │

Write a notebook to a string in a given format in the given nbformat version.

│ │ │

Any notebook format errors will be logged.

│ │ │
│ │ │
Parameters
│ │ │
    │ │ │
  • nb (NotebookNode) – The notebook to write.

  • │ │ │ -
  • version (int, optional) – The nbformat version to write. │ │ │ +

  • version (int, optional) – The nbformat version to write. │ │ │ If unspecified, or specified as nbformat.NO_CONVERT, │ │ │ the notebook’s own version will be used and no conversion performed.

  • │ │ │
│ │ │
│ │ │
Returns
│ │ │

s – The notebook as a JSON string.

│ │ │
│ │ │ @@ -186,15 +186,15 @@ │ │ │ In other words, there should never be a case where v1 v2 v3 v5 exist without │ │ │ a v4. Also assumes that all conversions can be made in one step increments │ │ │ between major versions and ignores minor revisions.

│ │ │
│ │ │
Parameters
│ │ │
    │ │ │
  • nb (NotebookNode) –

  • │ │ │ -
  • to_version (int) – Major revision to convert the notebook to. Can either be an upgrade or │ │ │ +

  • to_version (int) – Major revision to convert the notebook to. Can either be an upgrade or │ │ │ a downgrade.

  • │ │ │
│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │ @@ -253,15 +253,15 @@ │ │ │
Returns
│ │ │

NotebookNode

│ │ │
│ │ │
Return type
│ │ │

the output as a notebook node.

│ │ │
│ │ │
Raises
│ │ │ -

ValueError – if the message is not an output message.:

│ │ │ +

ValueError – if the message is not an output message.:

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │ │ │ │
│ │ │

Notebook signatures

│ │ ├── ./usr/share/doc/python-nbformat-doc/html/format_description.html │ │ │ @@ -146,15 +146,15 @@ │ │ │

Changed in version nbformat: 4.0

│ │ │

prompt_number renamed to execution_count

│ │ │
│ │ │ │ │ │
│ │ │

Code cell outputs

│ │ │

A code cell can have a variety of outputs (stream data or rich mime-type output). │ │ │ -These correspond to messages produced as a result of executing the cell.

│ │ │ +These correspond to messages produced as a result of executing the cell.

│ │ │

All outputs have an output_type field, │ │ │ which is a string defining what type of output it is.

│ │ │
│ │ │

stream output

│ │ │
{
│ │ │    "output_type" : "stream",
│ │ │    "name" : "stdout", # or stderr
│ │ │ @@ -292,15 +292,15 @@
│ │ │  
│ │ │
│ │ │
│ │ │
│ │ │

Cell attachments

│ │ │

Markdown and raw cells can have a number of attachments, typically inline │ │ │ images that can be referenced in the markdown content of a cell. The attachments │ │ │ -dictionary of a cell contains a set of mime-bundles (see display_data) │ │ │ +dictionary of a cell contains a set of mime-bundles (see display_data) │ │ │ keyed by filename that represents the files attached to the cell.

│ │ │
│ │ │

Note

│ │ │

The attachments dictionary is an optional field and can be undefined or empty if the cell does not have any attachments.

│ │ │
│ │ │
{
│ │ │    "cell_type" : "markdown",
│ │ │ @@ -372,15 +372,15 @@
│ │ │  

Value

│ │ │

Interpretation

│ │ │ │ │ │ │ │ │ │ │ │

kernelspec

│ │ │

dict

│ │ │ -

A kernel specification

│ │ │ +

A kernel specification

│ │ │ │ │ │

authors

│ │ │

list of dicts

│ │ │

A list of authors of the document

│ │ │ │ │ │ │ │ │