Skip to content

Commit caad521

Browse files
Add a try with JupyterLite in ipyleaflet documentation
1 parent a27ceb6 commit caad521

File tree

8 files changed

+24
-56
lines changed

8 files changed

+24
-56
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ js/jupyter-leaflet-*.tgz
2121
docs/*.csv
2222
docs/*.json
2323
docs/*.nc
24+
docs/test.wkt
2425

2526
# Untitled Notebooks
2627
*Untitled*.ipynb
2728

28-
#Galata
29+
#Galata
2930
ui-test/playwright-report
30-
ui-test/test-results
31+
ui-test/test-results

docs/environment.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ dependencies:
1515
- branca
1616
- shapely
1717
- pydata-sphinx-theme
18-
- jupyterlite-sphinx
18+
1919
- pip:
2020
- ..
21-
22-
21+
- jupyterlite-sphinx

docs/source/controls/fullscreen_control.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Example
1313

1414
m
1515

16-
Attribute
17-
---------
16+
Attributes
17+
----------
1818

1919
.. autoclass:: ipyleaflet.leaflet.FullScreenControl
2020
:members:

docs/source/controls/measure_control.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Example
2828
m
2929

3030

31-
Attributes and methods
32-
----------------------
31+
Attributes
32+
----------
3333

3434
.. autoclass:: ipyleaflet.leaflet.MeasureControl
3535
:members:

docs/source/ipyleaflet.ipynb

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,21 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
66
"id": "8eee1995-a52b-4eae-8898-047746e57b19",
77
"metadata": {},
8-
"outputs": [
9-
{
10-
"data": {
11-
"application/vnd.jupyter.widget-view+json": {
12-
"model_id": "96d863f5de674932843d341778cf17b2",
13-
"version_major": 2,
14-
"version_minor": 0
15-
},
16-
"text/plain": [
17-
"Map(center=[48.204793, 350.121558], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title'…"
18-
]
19-
},
20-
"metadata": {},
21-
"output_type": "display_data"
22-
}
23-
],
8+
"outputs": [],
9+
"source": [
10+
"import piplite\n",
11+
"await piplite.install('ipyleaflet')"
12+
]
13+
},
14+
{
15+
"cell_type": "code",
16+
"execution_count": null,
17+
"id": "dbabb8a7",
18+
"metadata": {},
19+
"outputs": [],
2420
"source": [
2521
"from ipyleaflet import Map, basemaps, basemap_to_tiles\n",
2622
"\n",
@@ -29,7 +25,6 @@
2925
" center=(48.204793, 350.121558),\n",
3026
" zoom=3\n",
3127
" )\n",
32-
"\n",
3328
"m"
3429
]
3530
}

docs/source/jupyterlite_config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"LiteBuildConfig": {
33
"federated_extensions": [
44
"https://github.com/conda-forge/releases/releases/download/noarch/jupyterlab_widgets-1.0.2-pyhd8ed1ab_0.tar.bz2/jupyterlab_widgets-1.0.2-pyhd8ed1ab_0.tar.bz2",
5-
"https://github.com/conda-forge/releases/releases/download/noarch/ipycanvas-0.11.0-pyhd8ed1ab_0.tar.bz2/ipycanvas-0.11.0-pyhd8ed1ab_0.tar.bz2"
5+
"https://github.com/conda-forge/releases/releases/download/noarch/ipyleaflet-0.15.0-pyhd8ed1ab_3.tar.bz2/ipyleaflet-0.15.0-pyhd8ed1ab_3.tar.bz2"
66
],
77
"ignore_sys_prefix": true,
88
"piplite_urls": [
9-
"https://files.pythonhosted.org/packages/py2.py3/i/ipycanvas/ipycanvas-0.11.0-py2.py3-none-any.whl",
9+
"https://files.pythonhosted.org/packages/py2.py3/i/ipyleaflet/ipyleaflet-0.15.0-py2.py3-none-any.whl",
1010
"https://files.pythonhosted.org/packages/py2.py3/i/ipython-genutils/ipython_genutils-0.2.0-py2.py3-none-any.whl",
1111
"https://files.pythonhosted.org/packages/py2.py3/i/ipywidgets/ipywidgets-7.6.5-py2.py3-none-any.whl",
1212
"https://files.pythonhosted.org/packages/py2.py3/r/requests/requests-2.27.1-py2.py3-none-any.whl",

docs/source/requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/test.wkt

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)