Using jslink it would be possible to precompute representations for a parameter range and then to display it according to user interaction: https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20Events.html