From 04060a237c08dd70ddfcf3220818ff2717057910 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Wed, 31 Dec 2025 13:22:48 -0500 Subject: [PATCH 1/5] Update line-and-scatter.md --- doc/python/line-and-scatter.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/python/line-and-scatter.md b/doc/python/line-and-scatter.md index b82312afccd..290fbcc6622 100644 --- a/doc/python/line-and-scatter.md +++ b/doc/python/line-and-scatter.md @@ -47,6 +47,13 @@ fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16]) fig.show() ``` +> Try the live scatter plot below to see how the code updates based on your selections. + +```python hide_code=true +from IPython.display import IFrame +IFrame(src='https://scatter-plot-python.plotly.app/', width='100%', height=800) +``` + ```python # x and y given as DataFrame columns import plotly.express as px From 679c5e40db22ca32f5316106cef73297110886f3 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Wed, 31 Dec 2025 15:43:00 -0500 Subject: [PATCH 2/5] Update line-and-scatter.md --- doc/python/line-and-scatter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python/line-and-scatter.md b/doc/python/line-and-scatter.md index 290fbcc6622..eb1999dd6dd 100644 --- a/doc/python/line-and-scatter.md +++ b/doc/python/line-and-scatter.md @@ -47,7 +47,7 @@ fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16]) fig.show() ``` -> Try the live scatter plot below to see how the code updates based on your selections. +**Try it yourself!** Use the interactive scatter plot app below, hosted on [Plotly Cloud](https://plotly.com/cloud/), to see how the code updates based on your selections. ```python hide_code=true from IPython.display import IFrame From 1bf07f5510a2b7edfc5939bd29c6884b2ac766a4 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Wed, 31 Dec 2025 15:44:19 -0500 Subject: [PATCH 3/5] Update line-and-scatter.md --- doc/python/line-and-scatter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python/line-and-scatter.md b/doc/python/line-and-scatter.md index eb1999dd6dd..b1b9c849b1b 100644 --- a/doc/python/line-and-scatter.md +++ b/doc/python/line-and-scatter.md @@ -47,7 +47,7 @@ fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16]) fig.show() ``` -**Try it yourself!** Use the interactive scatter plot app below, hosted on [Plotly Cloud](https://plotly.com/cloud/), to see how the code updates based on your selections. +**Try it yourself!** Use the following interactive scatter plot app, hosted on [Plotly Cloud](https://plotly.com/cloud/), to see how the code updates based on your selections. ```python hide_code=true from IPython.display import IFrame From 60b9fea56b832a48d6804d8ea656c3e321511446 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Wed, 31 Dec 2025 15:47:35 -0500 Subject: [PATCH 4/5] Update line-and-scatter.md --- doc/python/line-and-scatter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python/line-and-scatter.md b/doc/python/line-and-scatter.md index b1b9c849b1b..7a40c850e2e 100644 --- a/doc/python/line-and-scatter.md +++ b/doc/python/line-and-scatter.md @@ -47,7 +47,7 @@ fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16]) fig.show() ``` -**Try it yourself!** Use the following interactive scatter plot app, hosted on [Plotly Cloud](https://plotly.com/cloud/), to see how the code updates based on your selections. +**Try building a scatter plot.** Use the following interactive app, hosted on [Plotly Cloud](https://plotly.com/cloud/), to see how the code updates based on your selections. ```python hide_code=true from IPython.display import IFrame From f412dd499f43b7fe7001aa384f251815932bb29c Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Wed, 31 Dec 2025 15:57:56 -0500 Subject: [PATCH 5/5] Update line-and-scatter.md --- doc/python/line-and-scatter.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/python/line-and-scatter.md b/doc/python/line-and-scatter.md index 7a40c850e2e..5f700dc0f02 100644 --- a/doc/python/line-and-scatter.md +++ b/doc/python/line-and-scatter.md @@ -47,13 +47,6 @@ fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16]) fig.show() ``` -**Try building a scatter plot.** Use the following interactive app, hosted on [Plotly Cloud](https://plotly.com/cloud/), to see how the code updates based on your selections. - -```python hide_code=true -from IPython.display import IFrame -IFrame(src='https://scatter-plot-python.plotly.app/', width='100%', height=800) -``` - ```python # x and y given as DataFrame columns import plotly.express as px @@ -92,6 +85,13 @@ fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", symbol= fig.show() ``` +**Try building a scatter plot.** Use the following interactive app, hosted on [Plotly Cloud](https://plotly.com/cloud/), to see how the code updates based on your selections. + +```python hide_code=true +from IPython.display import IFrame +IFrame(src='https://scatter-plot-python.plotly.app/', width='100%', height=800) +``` + ## Scatter plots in Dash [Dash](https://plotly.com/dash/) is the best way to build analytical apps in Python using Plotly figures. To run the app below, run `pip install dash`, click "Download" to get the code and run `python app.py`.