Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Towards ipyleaflet 0.18.0 #1147

Merged
merged 10 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ build/
*.py[cod]
node_modules/
*package-lock.json
js/.yarn/

# Compiled javascript
ipyleaflet/nbextension/
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ build:
python: "mambaforge-4.10"

conda:
environment: docs/environment.yml
environment: docs/build-environment.yml
194 changes: 0 additions & 194 deletions docs/Makefile

This file was deleted.

File renamed without changes
File renamed without changes.
21 changes: 21 additions & 0 deletions docs/build-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: ipyleaflet-docs

channels:
- conda-forge

dependencies:
- yarn~=1.0
- jupyterlab~=3.6.0
- jupyter-packaging~=0.12
- jupyter-sphinx
- scipy
- netcdf4
- geopandas
- xarray
- branca
- shapely
- pydata-sphinx-theme
- jupyterlite-sphinx
- jupyterlite-xeus-python >=0.9.2,<0.10
- pip:
- ..
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/source/conf.py → docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

templates_path = ['_templates']

jupyterlite_config = "jupyterlite_config.json"
jupyterlite_dir = "."
jupyterlite_contents = [
"../../examples/europe_110.geo.json",
"../../examples/bars.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Example

from ipyleaflet import Map, basemaps, basemap_to_tiles, DrawControl

watercolor = basemap_to_tiles(basemaps.Stamen.Watercolor)
watercolor = basemap_to_tiles(basemaps.Stadia.StamenTerrain)

m = Map(layers=(watercolor, ), center=(50, 354), zoom=5)

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Example
from ipyleaflet import Map, basemaps, WidgetControl
from ipywidgets import IntSlider, ColorPicker, jslink

m = Map(center=(46.01, 6.16), zoom=12, basemap=basemaps.Stamen.Terrain)
m = Map(center=(46.01, 6.16), zoom=12, basemap=basemaps.Stadia.StamenTerrain)
zoom_slider = IntSlider(description='Zoom level:', min=0, max=15, value=7)
jslink((zoom_slider, 'value'), (m, 'zoom'))
widget_control1 = WidgetControl(widget=zoom_slider, position='topright')
Expand Down
File renamed without changes.
24 changes: 7 additions & 17 deletions docs/environment.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
name: ipyleaflet-docs

name: ipycanvas
channels:
- conda-forge

- https://repo.mamba.pm/emscripten-forge
- https://repo.mamba.pm/conda-forge
dependencies:
- yarn~=1.0
- jupyterlab~=3.6.0
- jupyter-packaging~=0.12
- jupyter-sphinx
- scipy
- netcdf4
- geopandas
- xarray
- numpy
- ipywidgets
- traittypes
- xyzservices
- branca
- shapely
- pydata-sphinx-theme

- pip:
- ..
- jupyterlite-sphinx
- jupyterlite>=0.1.0b9
File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions docs/source/ipyleaflet.ipynb → docs/ipyleaflet.ipynb
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "f2fda73d-1e28-41a8-bf5b-901e3f38866c",
"metadata": {},
"outputs": [],
"source": [
"import piplite\n",
"await piplite.install('ipyleaflet')"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
25 changes: 0 additions & 25 deletions docs/jupyterlite_config.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/source/layers/circle.rst → docs/layers/circle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example

from ipyleaflet import Map, basemaps, basemap_to_tiles, Circle

watercolor = basemap_to_tiles(basemaps.Stamen.Watercolor)
watercolor = basemap_to_tiles(basemaps.Stadia.StamenTerrain)

m = Map(layers=(watercolor, ), center=(53, 354), zoom=5)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example

from ipyleaflet import Map, basemaps, basemap_to_tiles, CircleMarker

watercolor = basemap_to_tiles(basemaps.Stamen.Watercolor)
watercolor = basemap_to_tiles(basemaps.Stadia.StamenTerrain)

m = Map(layers=(watercolor, ), center=(53, 354), zoom=5)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Example
Circle, Marker, Rectangle, LayerGroup
)

toner = basemap_to_tiles(basemaps.Stamen.Toner)
toner = basemap_to_tiles(basemaps.Stadia.StamenTerrain)

m = Map(layers=(toner, ), center=(50, 354), zoom=5)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example

from ipyleaflet import Map, basemaps, basemap_to_tiles, Rectangle

watercolor = basemap_to_tiles(basemaps.Stamen.Watercolor)
watercolor = basemap_to_tiles(basemaps.Stadia.StamenTerrain)

m = Map(layers=(watercolor, ), center=(53, 354), zoom=5)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ These layers can then be passed in an array to ``Map(layers)``:

mapnik = basemap_to_tiles(basemaps.OpenStreetMap.Mapnik)
mapnik.base = True
toner = basemap_to_tiles(basemaps.Stamen.Toner)
toner = basemap_to_tiles(basemaps.Stadia.StamenTerrain)
toner.base = True

m = Map(layers=[mapnik, toner], center=(52.204793, 360.121558), zoom=9)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading