Skip to content

Commit 9b6552e

Browse files
authored
testing strig
1 parent 654378e commit 9b6552e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/validate_and_fix_notebook.yml

Lines changed: 3 additions & 3 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

@@ -36,8 +36,8 @@ jobs:
3636
with open(file, 'r') as f:
3737
nb = nbformat.read(f, as_version=4)
3838
nbformat.validate(nb)
39-
if 'application/vnd.jupyter.widget-state+json' not in nb.metadata:
40-
nb.metadata['application/vnd.jupyter.widget-state+json'] = {'version': '1.0'}
39+
if 'application/vnd.jupyter.widget-state+json' not in nb.metadata.get('widgets', {}):
40+
nb.metadata['widgets'] = {'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)