From 2077ff3ef42abe7dc29ddca500df770ebc673787 Mon Sep 17 00:00:00 2001 From: StepanSmirnov Date: Fri, 1 May 2020 16:47:31 +0300 Subject: [PATCH 1/3] fix for issue #9 issue on https://github.com/jonmmease/plotly_ipywidget_notebooks/issues/9 --- notebooks/Interact.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notebooks/Interact.ipynb b/notebooks/Interact.ipynb index 674aa62..7a36eec 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" ] }, @@ -90,6 +90,7 @@ " scatt.x=xs\n", " scatt.y=np.sin(a*xs-b)\n", " scatt.line.color=color" + " fig.show()" ] }, { From bd2852a27e3fad8ef96b1632047fd4d3231b38a7 Mon Sep 17 00:00:00 2001 From: StepanSmirnov Date: Fri, 1 May 2020 16:50:12 +0300 Subject: [PATCH 2/3] add comma --- notebooks/Interact.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebooks/Interact.ipynb b/notebooks/Interact.ipynb index 7a36eec..f4bea2d 100644 --- a/notebooks/Interact.ipynb +++ b/notebooks/Interact.ipynb @@ -89,7 +89,7 @@ " 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", " fig.show()" ] }, From b34d33c79dc1874c681ce34d39e17dbf432ba1ce Mon Sep 17 00:00:00 2001 From: StepanSmirnov Date: Fri, 1 May 2020 17:16:34 +0300 Subject: [PATCH 3/3] line break --- notebooks/Interact.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebooks/Interact.ipynb b/notebooks/Interact.ipynb index f4bea2d..ddfeea0 100644 --- a/notebooks/Interact.ipynb +++ b/notebooks/Interact.ipynb @@ -89,7 +89,7 @@ " 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()" ] },