You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples/pydata.md
+14-14
Original file line number
Diff line number
Diff line change
@@ -91,10 +91,22 @@ data = xr.DataArray(
91
91
data
92
92
```
93
93
94
+
## ipyleaflet
95
+
96
+
`ipyleaflet` is a **Jupyter**/**Leaflet** bridge enabling interactive maps in the Jupyter notebook environment. this demonstrate how you can integrate maps in your documentation.
97
+
98
+
```{code-cell}
99
+
from ipyleaflet import Map, basemaps
100
+
from IPython.display import display
101
+
102
+
# display a map centered on France
103
+
m = Map(basemap=basemaps.Esri.WorldImagery, zoom=5, center=[46.21, 2.21])
104
+
display(m)
105
+
```
106
+
94
107
## jupyter-sphinx
95
108
96
-
Another common library is `jupyter-sphinx`.
97
-
This section demonstrates a subset of functionality above to make sure it behaves as expected.
109
+
This theme has styling for [`jupyter-sphinx`](https://jupyter-sphinx.readthedocs.io/), which is often used for executing and displaying widgets with a Jupyter kernel.
98
110
99
111
```{jupyter-execute}
100
112
import matplotlib.pyplot as plt
@@ -105,15 +117,3 @@ data = rng.standard_normal((3, 100))
105
117
fig, ax = plt.subplots()
106
118
ax.scatter(data[0], data[1], c=data[2], s=3)
107
119
```
108
-
109
-
## ipyleaflet
110
-
111
-
`ipyleaflet` is a **Jupyter**/**Leaflet** bridge enabling interactive maps in the Jupyter notebook environment. this demonstrate how you can integrate maps in your documentation.
112
-
113
-
```{jupyter-execute}
114
-
from ipyleaflet import Map, basemaps
115
-
116
-
# display a map centered on France
117
-
m = Map(basemap=basemaps.Esri.WorldImagery, zoom=5, center=[46.21, 2.21])
0 commit comments