Repository navigation
Add is_widget_backend() to the widget code path - #595
Conversation
|
I tried this patch on NixOS with: python -c 'import matplotlib.pyplot as plt; import scipp as sc; sc.arange("x", 5.0).plot(); plt.show()'And it simply did nothing... I then tried: python -c 'import matplotlib.pyplot as plt; import scipp as sc; print(sc.arange("x", 5.0).plot()); plt.show()'Which printed: Is this something I do wrong? |
I agree. By the same token, maybe |
I usually did it via import plopp as pp
f = pp.data.data1d().plot()
f.show()works for me. For the on-liner I am currently not sure why the matplotlib |
Doesn't work for me - I did created a Python file this time: import scipp as sc
f = sc.arange("x", 5.0).plot()
f.show()
Indeed! But this is very peculiar...
Yea for me too. |
|
@MridulS do you want to proceed with the renaming or should I do it? |
Didn't want to add the change to this pr, but feel free to push here and merge :) |
Are you going to at least document this behavior somewhere? It could be hard to diagnose for future users like me... |
You get the same behaviour with Matplotlib. Using will show the window and wait until you close it, while using will close the figure instantly so that you cannot see it. There is not much we can do about this on our side. The only thing left is to figure out why |
Finally, for the record, putting that code in a file and running |
See #607 |
This should fix #589
I think
InteractiveFigureis a bit misleading? Shouldn't this be something likeWidgetFigure, asInteractiveFiguresubclasses ipywidgets.