From 56f00c1982ab15de9a9a091a702ee71537ff9170 Mon Sep 17 00:00:00 2001 From: raphaeltimbo Date: Thu, 22 Aug 2024 13:58:22 -0300 Subject: [PATCH] Remove renderer = 'notebook' from files The pio.renderers.default = "notebook" will make plots not appear in more recent versions of jupyter/jupyter lab. Letting the code commented for people using older versions of jupyter. --- docs/user_guide/example_1.ipynb | 2 +- docs/user_guide/example_10.ipynb | 2 +- docs/user_guide/example_11.ipynb | 2 +- docs/user_guide/example_12.ipynb | 2 +- docs/user_guide/example_13.ipynb | 2 +- docs/user_guide/example_14.ipynb | 2 +- docs/user_guide/example_15.ipynb | 2 +- docs/user_guide/example_16.ipynb | 2 +- docs/user_guide/example_17.ipynb | 2 +- docs/user_guide/example_18.ipynb | 2 +- docs/user_guide/example_19.ipynb | 2 +- docs/user_guide/example_2.ipynb | 2 +- docs/user_guide/example_20.ipynb | 2 +- docs/user_guide/example_21.ipynb | 2 +- docs/user_guide/example_22.ipynb | 2 +- docs/user_guide/example_23.ipynb | 2 +- docs/user_guide/example_24.ipynb | 2 +- docs/user_guide/example_3.ipynb | 2 +- docs/user_guide/example_4.ipynb | 2 +- docs/user_guide/example_5.ipynb | 2 +- docs/user_guide/example_6.ipynb | 2 +- docs/user_guide/example_8.ipynb | 2 +- docs/user_guide/example_9.ipynb | 2 +- docs/user_guide/tutorial_part_1.ipynb | 2 +- docs/user_guide/tutorial_part_2_1.ipynb | 2 +- docs/user_guide/tutorial_part_2_2.ipynb | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/docs/user_guide/example_1.ipynb b/docs/user_guide/example_1.ipynb index 929e10b2c..38b3a0d63 100644 --- a/docs/user_guide/example_1.ipynb +++ b/docs/user_guide/example_1.ipynb @@ -32,7 +32,7 @@ "\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_10.ipynb b/docs/user_guide/example_10.ipynb index 17983abc7..5dac5dca1 100644 --- a/docs/user_guide/example_10.ipynb +++ b/docs/user_guide/example_10.ipynb @@ -34,7 +34,7 @@ "from ross.probe import Probe\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_11.ipynb b/docs/user_guide/example_11.ipynb index ac8f47d96..b69f361b2 100644 --- a/docs/user_guide/example_11.ipynb +++ b/docs/user_guide/example_11.ipynb @@ -30,7 +30,7 @@ "from ross.probe import Probe\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_12.ipynb b/docs/user_guide/example_12.ipynb index eaa273704..77be617fc 100644 --- a/docs/user_guide/example_12.ipynb +++ b/docs/user_guide/example_12.ipynb @@ -31,7 +31,7 @@ "from ross.probe import Probe\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_13.ipynb b/docs/user_guide/example_13.ipynb index aee0db3cd..33f25a065 100644 --- a/docs/user_guide/example_13.ipynb +++ b/docs/user_guide/example_13.ipynb @@ -30,7 +30,7 @@ "import plotly.graph_objects as go\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_14.ipynb b/docs/user_guide/example_14.ipynb index a6502e1e7..3c9629b4d 100644 --- a/docs/user_guide/example_14.ipynb +++ b/docs/user_guide/example_14.ipynb @@ -30,7 +30,7 @@ "import plotly.graph_objects as go\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_15.ipynb b/docs/user_guide/example_15.ipynb index 45d3bcd24..c286296e2 100644 --- a/docs/user_guide/example_15.ipynb +++ b/docs/user_guide/example_15.ipynb @@ -30,7 +30,7 @@ "from ross.probe import Probe\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_16.ipynb b/docs/user_guide/example_16.ipynb index c1c7ad86a..32a491303 100644 --- a/docs/user_guide/example_16.ipynb +++ b/docs/user_guide/example_16.ipynb @@ -40,7 +40,7 @@ "import plotly.graph_objects as go\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_17.ipynb b/docs/user_guide/example_17.ipynb index 553aa8a0e..156c09839 100644 --- a/docs/user_guide/example_17.ipynb +++ b/docs/user_guide/example_17.ipynb @@ -44,7 +44,7 @@ "from IPython.display import display\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_18.ipynb b/docs/user_guide/example_18.ipynb index 5a73d7390..37a090a06 100644 --- a/docs/user_guide/example_18.ipynb +++ b/docs/user_guide/example_18.ipynb @@ -36,7 +36,7 @@ "from IPython.display import display\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_19.ipynb b/docs/user_guide/example_19.ipynb index 696c825b5..fc3d370fd 100644 --- a/docs/user_guide/example_19.ipynb +++ b/docs/user_guide/example_19.ipynb @@ -36,7 +36,7 @@ "from IPython.display import display\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_2.ipynb b/docs/user_guide/example_2.ipynb index b7a32a7a7..4788579a4 100644 --- a/docs/user_guide/example_2.ipynb +++ b/docs/user_guide/example_2.ipynb @@ -28,7 +28,7 @@ "import ross as rs\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_20.ipynb b/docs/user_guide/example_20.ipynb index 190c6162b..bfdb67931 100644 --- a/docs/user_guide/example_20.ipynb +++ b/docs/user_guide/example_20.ipynb @@ -35,7 +35,7 @@ "from IPython.display import display\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_21.ipynb b/docs/user_guide/example_21.ipynb index 7db0034bf..404700b6b 100644 --- a/docs/user_guide/example_21.ipynb +++ b/docs/user_guide/example_21.ipynb @@ -40,7 +40,7 @@ "from IPython.display import display\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_22.ipynb b/docs/user_guide/example_22.ipynb index 274b7fcdd..c58eb6064 100644 --- a/docs/user_guide/example_22.ipynb +++ b/docs/user_guide/example_22.ipynb @@ -34,7 +34,7 @@ "from IPython.display import display\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_23.ipynb b/docs/user_guide/example_23.ipynb index 407386db6..c7df26481 100644 --- a/docs/user_guide/example_23.ipynb +++ b/docs/user_guide/example_23.ipynb @@ -36,7 +36,7 @@ "import plotly.graph_objects as go\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_24.ipynb b/docs/user_guide/example_24.ipynb index 425c2fc0a..604741381 100644 --- a/docs/user_guide/example_24.ipynb +++ b/docs/user_guide/example_24.ipynb @@ -39,7 +39,7 @@ "from IPython.display import display\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_3.ipynb b/docs/user_guide/example_3.ipynb index a8f4bba8a..05c5fb01f 100644 --- a/docs/user_guide/example_3.ipynb +++ b/docs/user_guide/example_3.ipynb @@ -38,7 +38,7 @@ "import plotly.graph_objects as go\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_4.ipynb b/docs/user_guide/example_4.ipynb index 8426d86c4..d5fb0e874 100644 --- a/docs/user_guide/example_4.ipynb +++ b/docs/user_guide/example_4.ipynb @@ -31,7 +31,7 @@ "import plotly.graph_objects as go\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_5.ipynb b/docs/user_guide/example_5.ipynb index 7164c4e3c..b29b5aba6 100644 --- a/docs/user_guide/example_5.ipynb +++ b/docs/user_guide/example_5.ipynb @@ -30,7 +30,7 @@ "import plotly.graph_objects as go\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_6.ipynb b/docs/user_guide/example_6.ipynb index fd400b989..7781cf8e0 100644 --- a/docs/user_guide/example_6.ipynb +++ b/docs/user_guide/example_6.ipynb @@ -31,7 +31,7 @@ "import plotly.graph_objects as go\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_8.ipynb b/docs/user_guide/example_8.ipynb index bedf8464d..4d8682f7c 100644 --- a/docs/user_guide/example_8.ipynb +++ b/docs/user_guide/example_8.ipynb @@ -29,7 +29,7 @@ "import plotly.graph_objects as go\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/example_9.ipynb b/docs/user_guide/example_9.ipynb index bce65cf0f..8a084e0fc 100644 --- a/docs/user_guide/example_9.ipynb +++ b/docs/user_guide/example_9.ipynb @@ -41,7 +41,7 @@ "import plotly.graph_objects as go\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/tutorial_part_1.ipynb b/docs/user_guide/tutorial_part_1.ipynb index c91413a4b..18c271041 100644 --- a/docs/user_guide/tutorial_part_1.ipynb +++ b/docs/user_guide/tutorial_part_1.ipynb @@ -47,7 +47,7 @@ "import numpy as np\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, { diff --git a/docs/user_guide/tutorial_part_2_1.ipynb b/docs/user_guide/tutorial_part_2_1.ipynb index d43324c11..a23ab1e17 100644 --- a/docs/user_guide/tutorial_part_2_1.ipynb +++ b/docs/user_guide/tutorial_part_2_1.ipynb @@ -35,7 +35,7 @@ "iopub.status.idle": "2023-05-04T01:03:40.194460Z", "shell.execute_reply": "2023-05-04T01:03:40.193987Z" } - }, + }"# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" "outputs": [], "source": [ "import ross as rs\n", diff --git a/docs/user_guide/tutorial_part_2_2.ipynb b/docs/user_guide/tutorial_part_2_2.ipynb index 2b759f6ec..0d4523eff 100644 --- a/docs/user_guide/tutorial_part_2_2.ipynb +++ b/docs/user_guide/tutorial_part_2_2.ipynb @@ -46,7 +46,7 @@ "import numpy as np\n", "import plotly.io as pio\n", "\n", - "pio.renderers.default = \"notebook\"" + "# pio.renderers.default = \"notebook\" # depending on jupyter version you might need to enable this line" ] }, {