Run this notebook to clear "execution_count"
field of notebooks in this repository.
import * as fs from "fs";
import * as path from "path";
for (const name of fs.readdirSync('.')) {
if (!name.endsWith('.ipynb') || name === 'clean_notebooks.ipynb') {
continue;
}
let content = fs.readFileSync(name, {
encoding: 'utf8'
});
content = content.replace(/("execution_count"\s*:\s*)\d+/g, '$1null');
fs.writeFileSync(name, content);
}