Skip to content

How to provide round trip consistency for notebooks in nbformat version 4.5 (with cell ids)? #735

@mwouts

Description

@mwouts

As reported at #715 , the new cell ids introduced in notebooks in nbformat version 4.5 causes trouble with Jupytext. Indeed, the text representation does not store the cell id, and in that case nbformat regenerate a (random) cell id, contributing random differences on text <-> ipynb round trips.

I see at least two possible approaches to address this issue:

  1. Patch nbformat to generate non-random cell ids
  2. Store the cell id in the Jupytext representation of the notebook

Anyone is welcome to contribute ideas or comments!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions