Skip to content

Commit

Permalink
Add a try with JupyterLite in ipyleaflet documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
HaudinFlorence committed Apr 6, 2022
1 parent a27ceb6 commit caad521
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 56 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ js/jupyter-leaflet-*.tgz
docs/*.csv
docs/*.json
docs/*.nc
docs/test.wkt

# Untitled Notebooks
*Untitled*.ipynb

#Galata
#Galata
ui-test/playwright-report
ui-test/test-results
ui-test/test-results
5 changes: 2 additions & 3 deletions docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ dependencies:
- branca
- shapely
- pydata-sphinx-theme
- jupyterlite-sphinx

- pip:
- ..


- jupyterlite-sphinx
4 changes: 2 additions & 2 deletions docs/source/controls/fullscreen_control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Example

m

Attribute
---------
Attributes
----------

.. autoclass:: ipyleaflet.leaflet.FullScreenControl
:members:
4 changes: 2 additions & 2 deletions docs/source/controls/measure_control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Example
m


Attributes and methods
----------------------
Attributes
----------

.. autoclass:: ipyleaflet.leaflet.MeasureControl
:members:
31 changes: 13 additions & 18 deletions docs/source/ipyleaflet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,21 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "8eee1995-a52b-4eae-8898-047746e57b19",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "96d863f5de674932843d341778cf17b2",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Map(center=[48.204793, 350.121558], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title'…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"import piplite\n",
"await piplite.install('ipyleaflet')"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "dbabb8a7",
"metadata": {},
"outputs": [],
"source": [
"from ipyleaflet import Map, basemaps, basemap_to_tiles\n",
"\n",
Expand All @@ -29,7 +25,6 @@
" center=(48.204793, 350.121558),\n",
" zoom=3\n",
" )\n",
"\n",
"m"
]
}
Expand Down
4 changes: 2 additions & 2 deletions docs/source/jupyterlite_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"LiteBuildConfig": {
"federated_extensions": [
"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",
"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"
"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"
],
"ignore_sys_prefix": true,
"piplite_urls": [
"https://files.pythonhosted.org/packages/py2.py3/i/ipycanvas/ipycanvas-0.11.0-py2.py3-none-any.whl",
"https://files.pythonhosted.org/packages/py2.py3/i/ipyleaflet/ipyleaflet-0.15.0-py2.py3-none-any.whl",
"https://files.pythonhosted.org/packages/py2.py3/i/ipython-genutils/ipython_genutils-0.2.0-py2.py3-none-any.whl",
"https://files.pythonhosted.org/packages/py2.py3/i/ipywidgets/ipywidgets-7.6.5-py2.py3-none-any.whl",
"https://files.pythonhosted.org/packages/py2.py3/r/requests/requests-2.27.1-py2.py3-none-any.whl",
Expand Down
4 changes: 0 additions & 4 deletions docs/source/requirements.txt

This file was deleted.

23 changes: 0 additions & 23 deletions docs/test.wkt

This file was deleted.

0 comments on commit caad521

Please sign in to comment.