We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 826dd89 commit 0e286bcCopy full SHA for 0e286bc
1 file changed
.github/workflows/validate_and_fix_notebook.yml
@@ -4,7 +4,7 @@ on:
4
pull_request:
5
branches:
6
- main
7
-
+
8
permissions:
9
contents: write
10
@@ -32,12 +32,12 @@ jobs:
32
python -c "
33
import nbformat
34
import glob
35
- for file in glob.glob('**/*.ypyb', recursive=True):
+ for file in glob.glob('**/*.ipynb', recursive=True):
36
with open(file, 'r') as f:
37
nb = nbformat.read(f, as_version=4)
38
nbformat.validate(nb)
39
- if 'application/vnd.beylor-adapt+notebook' not in nb.metadata:
40
- nb.metadata['application/vnd.beylor-adapt+notebook'] = {'version': '1.0'}
+ if 'application/vnd.jupyter.widget-state+json' not in nb.metadata:
+ nb.metadata['application/vnd.jupyter.widget-state+json'] = {'version': '1.0'}
41
with open(file, 'w') as f:
42
nbformat.write(nb, f)
43
"
0 commit comments