Skip to content

Commit e9e1c77

Browse files
authored
Merge pull request #968 from jasongrout/8.0
ipywidgets 8.0 support
2 parents 1da0121 + ebcfcf3 commit e9e1c77

28 files changed

+3749
-2214
lines changed

.github/workflows/ui-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
channels: conda-forge
2727

2828
- name: Mamba install dependencies
29-
run: mamba install python=${{ matrix.python-version }} pip nodejs=16 flake8 jupyterlab ipywidgets jupyter-packaging~=0.7.9
29+
run: mamba install python=${{ matrix.python-version }} pip nodejs=16 flake8 jupyterlab ipywidgets>=8.0.1 jupyter-packaging~=0.7.9
3030

3131
- name: Install ipyleaflet
3232
run: pip install .

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ docs/test.wkt
2828
*Untitled*.ipynb
2929

3030
#Galata
31-
ui-test/playwright-report
32-
ui-test/test-results
31+
ui-tests/playwright-report
32+
ui-tests/test-results

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"watch:labextension": "jupyter labextension watch ."
2626
},
2727
"dependencies": {
28-
"@jupyter-widgets/base": "^2 || ^3 || ^4.0.0",
28+
"@jupyter-widgets/base": "^2 || ^3 || ^4 || ^5 || ^6",
2929
"buffer": "^6.0.3",
3030
"crypto-browserify": "^3.12.0",
3131
"leaflet": "^1.7.1",

js/src/controls/LayersControl.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export class LeafletLayersControlView extends control.LeafletControlView {
2525
*/
2626

2727
initialize(parameters) {
28-
super.initialize(parameters);
2928
super.initialize(parameters);
3029
this.map_view = this.options.map_view;
3130
}

js/yarn.lock

Lines changed: 3108 additions & 1475 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["jupyter_packaging~=0.7.9", "jupyterlab>=3.0.0,==3.*", "setuptools>=40.8.0", "wheel"]
2+
requires = ["jupyter_packaging~=0.12", "jupyterlab>=3.0.0,==3.*", "setuptools>=40.8.0", "wheel"]
33
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
[bdist_wheel]
2-
universal=1
3-
41
[metadata]
52
license_file = LICENSE

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@
5252
description='A Jupyter widget for dynamic Leaflet maps',
5353
long_description=long_description,
5454
license='MIT License',
55+
python_requires = ">=3.7",
5556
include_package_data=True,
5657
install_requires=[
57-
'ipywidgets>=7.6.0,<8',
58+
'ipywidgets>=7.6.0,<9',
5859
'traittypes>=0.2.1,<3',
5960
'xyzservices>=2021.8.1',
6061
'branca>=0.5.0'
@@ -73,7 +74,6 @@
7374
'Topic :: Multimedia :: Graphics',
7475
'License :: OSI Approved :: MIT License',
7576
'Programming Language :: Python :: 3',
76-
'Programming Language :: Python :: 3.6',
7777
'Programming Language :: Python :: 3.7',
7878
'Programming Language :: Python :: 3.8',
7979
'Programming Language :: Python :: 3.9',

ui-tests/notebooks/MagnifyingGlass.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"\n",
1212
"center = [48.265643898808236, 336.7529296875]\n",
1313
"\n",
14-
"m = Map(center=center, zoom=7)\n",
14+
"m = Map(center=center, zoom=2)\n",
1515
"\n",
1616
"topo_layer = basemap_to_tiles(basemaps.OpenTopoMap)\n",
1717
"magnifying_glass = MagnifyingGlass(layers=[topo_layer])\n",

ui-tests/notebooks/TileLayer.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"\n",
1212
"center = [48.265643898808236, 336.7529296875]\n",
1313
"\n",
14-
"m = Map(center=center, zoom=7)\n",
14+
"m = Map(center=center, zoom=2)\n",
1515
"\n",
1616
"dark_matter_layer = basemap_to_tiles(basemaps.CartoDB.DarkMatter)\n",
1717
"m.add(dark_matter_layer)\n",

0 commit comments

Comments
 (0)