Skip to content

Commit ae5e27f

Browse files
committed
Added pio.renderers.default = "notebook_connected" to all three notebook
1 parent 8885a0a commit ae5e27f

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

docs/examples/advanced.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
"source": [
1818
"import numpy as np\n",
1919
"import pandas as pd\n",
20+
"import plotly.io as pio\n",
2021
"import xarray as xr\n",
2122
"\n",
22-
"from xarray_plotly import xpx"
23+
"from xarray_plotly import xpx\n",
24+
"\n",
25+
"pio.renderers.default = \"notebook_connected\""
2326
]
2427
},
2528
{

docs/examples/plot-types.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
"source": [
1818
"import numpy as np\n",
1919
"import pandas as pd\n",
20+
"import plotly.io as pio\n",
2021
"import xarray as xr\n",
2122
"\n",
22-
"from xarray_plotly import xpx"
23+
"from xarray_plotly import xpx\n",
24+
"\n",
25+
"pio.renderers.default = \"notebook_connected\""
2326
]
2427
},
2528
{

docs/getting-started.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,13 @@
4343
"source": [
4444
"import numpy as np\n",
4545
"import pandas as pd\n",
46+
"import plotly.io as pio\n",
4647
"import xarray as xr\n",
4748
"\n",
48-
"from xarray_plotly import xpx # Provides full IDE code completion"
49+
"from xarray_plotly import xpx # Provides full IDE code completion\n",
50+
"\n",
51+
"# Set renderer for mkdocs-jupyter compatibility\n",
52+
"pio.renderers.default = \"notebook_connected\""
4953
]
5054
},
5155
{

0 commit comments

Comments
 (0)