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. |
This should fix #589
I think
InteractiveFigureis a bit misleading? Shouldn't this be something likeWidgetFigure, asInteractiveFiguresubclasses ipywidgets.