diff --git a/notebooks/Interact.ipynb b/notebooks/Interact.ipynb index 674aa62..ddfeea0 100644 --- a/notebooks/Interact.ipynb +++ b/notebooks/Interact.ipynb @@ -50,7 +50,7 @@ ], "source": [ "fig = go.FigureWidget()\n", - "scatt = fig.add_scatter()\n", + "scatt = fig.add_scatter().data[0]\n", "fig" ] }, @@ -89,7 +89,8 @@ " with fig.batch_update():\n", " scatt.x=xs\n", " scatt.y=np.sin(a*xs-b)\n", - " scatt.line.color=color" + " scatt.line.color=color\n", + " fig.show()" ] }, {