Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Latest commit

 

History

History
13 lines (9 loc) · 463 Bytes

2022-05-17-remove-cell-id-jupyter-notebook.md

File metadata and controls

13 lines (9 loc) · 463 Bytes
layout title categories
post
Remove unique cell id from Jupyter Notebooks
git
notebook

I know! Jupyter is littering your git diff with randomly generated cell ids and nbstripout doesn't remove them, (I'm sure they are useful for some reason).

Open the Notebook with your editor of choice, vim, then look for minor and set nbformat_minor to 4:

"nbformat_minor": 4

Open and save again from Jupyter, cell ids should be gone for good!