Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support cell ids in text notebooks #1006

Closed
mwouts opened this issue Oct 31, 2022 · 0 comments · Fixed by #1177
Closed

Support cell ids in text notebooks #1006

mwouts opened this issue Oct 31, 2022 · 0 comments · Fixed by #1177

Comments

@mwouts
Copy link
Owner

mwouts commented Oct 31, 2022

The latest version of nbformat>=5.7.0 emits a message when a notebook has no cell ids.

I'd like to see what we could do about that. Maybe I'd prefer not to include the cell ids in the text notebooks by default, but we could still give an option to do so.

Also, pandoc>=2.7 does support cell ids, but Jupytext currently filters out the cell ids when saving to a text format , we should think about that.

Other possibilities would be

  • generate simple ids (like: unnamed_code_cell_1) for cells that don't have one, and ignore the ids that matches the pattern when we write the text version of the notebook
  • save the non trivial ids as the 'title' of the cell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant