Skip to content

Commit 0e286bc

Browse files
authored
format ext
1 parent 826dd89 commit 0e286bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/validate_and_fix_notebook.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
branches:
66
- main
7-
7+
88
permissions:
99
contents: write
1010

@@ -32,12 +32,12 @@ jobs:
3232
python -c "
3333
import nbformat
3434
import glob
35-
for file in glob.glob('**/*.ypyb', recursive=True):
35+
for file in glob.glob('**/*.ipynb', recursive=True):
3636
with open(file, 'r') as f:
3737
nb = nbformat.read(f, as_version=4)
3838
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'}
39+
if 'application/vnd.jupyter.widget-state+json' not in nb.metadata:
40+
nb.metadata['application/vnd.jupyter.widget-state+json'] = {'version': '1.0'}
4141
with open(file, 'w') as f:
4242
nbformat.write(nb, f)
4343
"

0 commit comments

Comments
 (0)