You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> @dremdem I have run the linter not sure abt the error. The files are linted
I ran the Linter on this file locally and got:
RuntimeError: /venv/lib/python3.12/site-packages/nbformat/__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. [process_jupytext]
Traceback (most recent call last): [process_jupytext]
[jupytext] Reading dev_scripts_helpers/update_devops_packages/notebooks/Master_buildmeister_dashboard.ipynb in format ipynb [process_jupytext]
dev_scripts_helpers/update_devops_packages/notebooks/Master_buildmeister_dashboard.ipynb: Cell content differ on code cell #7: --- expected [process_jupytext]
process_jupytext failed with command `$(find -wholename '*dev_scripts_helpers/notebooks/process_jupytext.py') -f dev_scripts_helpers/update_devops_packages/notebooks/Master_buildmeister_dashboard.ipynb --action test`
[process_jupytext]
import nbformat
with open("problematic_notebook.ipynb", "r") as file:
nb_corrupted = nbformat.reader.read(file)
nbformat.validator.validate(nb_corrupted)
# <stdin>:1: MissingIDFieldWarning: Code cell is missing an id field,
# this will become a hard error in future nbformat versions.
# You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4).
# Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
nb_fixed = nbformat.validator.normalize(nb_corrupted)
nbformat.validator.validate(nb_fixed[1])
# Produces no warnings or errors.
with open("fixed_notebook.ipynb", "w") as file:
nbformat.write(nb_fixed[1], file)
I ran the
Linter
on this file locally and got:Found some info
https://stackoverflow.com/questions/75632445/anaconda-jupyter-notebook-and-missingidfieldwarning
Tried that approach:
But no luck.
Feel free to file a bug.
FYI @sonniki
Originally posted by @dremdem in #598 (comment)
The text was updated successfully, but these errors were encountered: