Open SwaggerNiels opened 3 months ago
Hello @SwaggerNiels , thanks for your kind words.
I assume you are using Matplotlib. I think I went pretty close to replicate your error. When a parametric-interactive plot is created with ipywidgets, it expects the matplotlib figure to be an interactive one. By running %matplotlib widget
at the start of the notebook, it activates an interactive frame (a widget) wrapping a matplotlib figure, which allows interactivity. For me, it solved the problem.
However, it appears to me that the VSCode doesn't load all the necessary javascript files to make the interactive experience as good as the one offered by vanilla Jupyter Lab (or Notebook) run on the browser. For example, it doesn't show Latex labels (note the $y$
on the slider):
This is rendered correctly on a Jupyter Lab/Notebook run on the browser:
I'll keep this issue open for now, I might find some time to dig deeper into it. For now, just know that the interactive capabilities of this module are fully working on Jupyter Notebook/Lab running on a browser.
Indeed, I see that jupyter notebook gives me perfectly stable results. I will use that from now on until a solution is found.
Thank you for the fast response!
Hello, I have recently discovered spb, and it is truely awesome, but I do not get stable results. Sometimes my graphs shift when using multiple sliders, and every now and then when I run the my "boilerplate" function (below) in jupyter notebook in VSCode it doesn't even show at all and throws an error (below below)