Open alex-treebeard opened 1 year ago
This repo has a pretty advanced setup using Selenium's python APIs @thewtex you can see that they actually test the widget's functionality (not just load it).
@alex-treebeard here is a high level architecture that aims to:
References:
weights and biases have come up with an interesting cypress-based solution
Interesting! It does not look like they are running the notebooks in an actual browser, though, from what I can tell.
Describe the bug The ITKWidgets project cannot test a notebooks that calls a widget which is only initialised when a browser is present
To Reproduce See https://github.com/InsightSoftwareConsortium/itkwidgets/pull/587
Expected behavior Can call the initialised widget API successfully
Additional context This issue occurs because nbclient is an alternative to running a full jupyter web app + server (architecture diagram) and doesn't run a browser context.
Problem cell example
from ipynb.