I was trying to use %matplotlib widget to achieve interactivity in Jupiter Lab. But the output plot and widgets only showed up as texts. How to make the actual plot and widgets show up?
%matplotlib widget
import matplotlib.pyplot as plt
plt.figure()
x = [1,2,3]
y = [4,5,6]
plt.plot(x,y)
Output:
Canvas(toolbar=Toolbar(toolitems=[('Home', 'Reset original view', 'home', 'home'), ('Back', 'Back to previous …
[1]:
[<matplotlib.lines.Line2D at 0x114777b38>]