Skip to content

Commit 5dffe6d

Browse files
Fix invalid schema when parsing notebooks
1 parent 0614834 commit 5dffe6d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

jupyterlite_sphinx/jupyterlite_sphinx.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,11 @@ def run(self):
351351
# is so that we don't end up removing useful data or directives that
352352
# are not meant to be removed.
353353

354-
nb = nbformat.read(notebook, as_version=4)
355-
print(f"Opened {notebook_name}")
356354
nb = nbformat.read(notebook, as_version=4)
357355
nb.cells = [
358356
cell
359357
for cell in nb.cells
360-
if "true" not in cell.metadata.get("jupyterlite_sphinx_strip", [])
358+
if "jupyterlite_sphinx_strip" not in cell.metadata.get("tags", [])
361359
]
362360
nbformat.write(nb, notebooks_dir, version=4)
363361

0 commit comments

Comments
 (0)