Skip to content

Commit 2e17d0b

Browse files
committed
Do not compare widget views
Widget views are simply version numbers and a random model id (uuid). The default repr of the widget should be reasonably sufficient for comparing widgets.
1 parent 7c6cd71 commit 2e17d0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nbval/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ def __init__(self, *args, **kwargs):
212212
'output_type',
213213
'name',
214214
'execution_count',
215+
'application/vnd.jupyter.widget-view+json' # Model IDs are random
215216
)
216217
if not config.option.nbdime:
217218
self.skip_compare = self.skip_compare + ('image/png', 'image/jpeg')

0 commit comments

Comments
 (0)