File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ and then by tagging the cells you want to strip with the tag `jupyterlite_sphinx
68
68
of the cell, like this:
69
69
70
70
``` json
71
- {
71
+ "metadata" : {
72
72
"tags" : [
73
- "jupyterlite_sphinx_strip" : " true "
73
+ " jupyterlite_sphinx_strip"
74
74
]
75
75
}
76
76
```
@@ -89,7 +89,7 @@ in the JupyterLite console:
89
89
"cell_type" : " markdown" ,
90
90
"metadata" : {
91
91
"tags" : [
92
- "jupyterlite_sphinx_strip" : " true "
92
+ " jupyterlite_sphinx_strip"
93
93
]
94
94
},
95
95
"source" : [
Original file line number Diff line number Diff line change @@ -351,13 +351,11 @@ def run(self):
351
351
# is so that we don't end up removing useful data or directives that
352
352
# are not meant to be removed.
353
353
354
- nb = nbformat .read (notebook , as_version = 4 )
355
- print (f"Opened { notebook_name } " )
356
354
nb = nbformat .read (notebook , as_version = 4 )
357
355
nb .cells = [
358
356
cell
359
357
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 " , [])
361
359
]
362
360
nbformat .write (nb , notebooks_dir , version = 4 )
363
361
You can’t perform that action at this time.
0 commit comments