arviz-devs / arviz

Exploratory analysis of Bayesian models with Python
https://python.arviz.org
Apache License 2.0
1.58k stars 395 forks source link

Testing of interactive plotting features #719

Open OriolAbril opened 5 years ago

OriolAbril commented 5 years ago

PR #700 introduced the option hover_label, which shows the label of a datapoint when the user hovers over it with the mouse. For now, this feature is not tested in CI, because it requires an interactive backend.

Thoughts on implementation

Add one extra job skipping all tests except the interactive ones? It would require to somehow fake the hover action too, as part of the code is only executed when the hover action is triggered.

michaelraczycki commented 1 year ago

how about using Selenium to simulate the user actions in the notebook?

OriolAbril commented 1 year ago

This sounds very nice. I have no idea how we'd go about this though 😅