I am developing a small, python-based conceptual model based around ocean optics. This model uses a series of interactive widgets to update a plot of a curve. The code can be found here; https://gitlab.com/benloveday/oc_forward_model (with a link to the Binder spin-up).
The main "guts" of the interactive component are in the ./forward_model/main.py module, where the parent class is defined. The interactive part is heavily based on the use of the "observe" method, as detailed in https://kapernikov.com/ipywidgets-with-matplotlib/.
The model works perfectly locally, but when deployed on Binder the plots do not render, as shown in the images; local deployment binder deployment
There is no error message when I use the widgets, and they will "move" but without any apparent effect.
Jupyter Notebook classic is used in both cases, I think. It is a little hard to tell if Binder is just using a classic interface over JupyterLab, but the conda env dumps look mostly consistent between local and binder.
Simply changing the matplotlib backend does not help, resulting in a static plot that renders but does not respond to the widgets.
I'm at a little bit of a loss now, and any suggestions/advice on where the issue may lie would be appreciated.
Thanks, Ben