Chartops
In [1]:
Copied!
%pip install chartops
%pip install chartops
Requirement already satisfied: chartops in /opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/site-packages (0.1.1) Requirement already satisfied: folium in /home/runner/.local/lib/python3.11/site-packages (from chartops) (0.20.0) Requirement already satisfied: geopandas in /home/runner/.local/lib/python3.11/site-packages (from chartops) (1.1.0) Requirement already satisfied: ipyleaflet in /home/runner/.local/lib/python3.11/site-packages (from chartops) (0.20.0) Requirement already satisfied: numpy in /home/runner/.local/lib/python3.11/site-packages (from chartops) (2.3.0) Requirement already satisfied: branca>=0.6.0 in /home/runner/.local/lib/python3.11/site-packages (from folium->chartops) (0.8.1) Requirement already satisfied: jinja2>=2.9 in /home/runner/.local/lib/python3.11/site-packages (from folium->chartops) (3.1.6) Requirement already satisfied: requests in /home/runner/.local/lib/python3.11/site-packages (from folium->chartops) (2.32.4) Requirement already satisfied: xyzservices in /home/runner/.local/lib/python3.11/site-packages (from folium->chartops) (2025.4.0) Requirement already satisfied: MarkupSafe>=2.0 in /home/runner/.local/lib/python3.11/site-packages (from jinja2>=2.9->folium->chartops) (3.0.2) Requirement already satisfied: pyogrio>=0.7.2 in /home/runner/.local/lib/python3.11/site-packages (from geopandas->chartops) (0.11.0) Requirement already satisfied: packaging in /home/runner/.local/lib/python3.11/site-packages (from geopandas->chartops) (25.0) Requirement already satisfied: pandas>=2.0.0 in /home/runner/.local/lib/python3.11/site-packages (from geopandas->chartops) (2.3.0) Requirement already satisfied: pyproj>=3.5.0 in /home/runner/.local/lib/python3.11/site-packages (from geopandas->chartops) (3.7.1) Requirement already satisfied: shapely>=2.0.0 in /home/runner/.local/lib/python3.11/site-packages (from geopandas->chartops) (2.1.1) Requirement already satisfied: python-dateutil>=2.8.2 in /home/runner/.local/lib/python3.11/site-packages (from pandas>=2.0.0->geopandas->chartops) (2.9.0.post0) Requirement already satisfied: pytz>=2020.1 in /home/runner/.local/lib/python3.11/site-packages (from pandas>=2.0.0->geopandas->chartops) (2025.2) Requirement already satisfied: tzdata>=2022.7 in /home/runner/.local/lib/python3.11/site-packages (from pandas>=2.0.0->geopandas->chartops) (2025.2) Requirement already satisfied: certifi in /home/runner/.local/lib/python3.11/site-packages (from pyogrio>=0.7.2->geopandas->chartops) (2025.6.15) Requirement already satisfied: six>=1.5 in /home/runner/.local/lib/python3.11/site-packages (from python-dateutil>=2.8.2->pandas>=2.0.0->geopandas->chartops) (1.17.0) Requirement already satisfied: ipywidgets<9,>=7.6.0 in /home/runner/.local/lib/python3.11/site-packages (from ipyleaflet->chartops) (8.1.7) Requirement already satisfied: jupyter-leaflet<0.21,>=0.20 in /home/runner/.local/lib/python3.11/site-packages (from ipyleaflet->chartops) (0.20.0) Requirement already satisfied: traittypes<3,>=0.2.1 in /home/runner/.local/lib/python3.11/site-packages (from ipyleaflet->chartops) (0.2.1) Requirement already satisfied: comm>=0.1.3 in /home/runner/.local/lib/python3.11/site-packages (from ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (0.2.2) Requirement already satisfied: ipython>=6.1.0 in /home/runner/.local/lib/python3.11/site-packages (from ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (9.3.0) Requirement already satisfied: traitlets>=4.3.1 in /home/runner/.local/lib/python3.11/site-packages (from ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (5.14.3) Requirement already satisfied: widgetsnbextension~=4.0.14 in /home/runner/.local/lib/python3.11/site-packages (from ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (4.0.14) Requirement already satisfied: jupyterlab_widgets~=3.0.15 in /home/runner/.local/lib/python3.11/site-packages (from ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (3.0.15) Requirement already satisfied: decorator in /home/runner/.local/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (5.2.1) Requirement already satisfied: ipython-pygments-lexers in /home/runner/.local/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (1.1.1) Requirement already satisfied: jedi>=0.16 in /home/runner/.local/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (0.19.2) Requirement already satisfied: matplotlib-inline in /home/runner/.local/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (0.1.7) Requirement already satisfied: pexpect>4.3 in /home/runner/.local/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (4.9.0)
Requirement already satisfied: prompt_toolkit<3.1.0,>=3.0.41 in /home/runner/.local/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (3.0.51) Requirement already satisfied: pygments>=2.4.0 in /home/runner/.local/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (2.19.1) Requirement already satisfied: stack_data in /home/runner/.local/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (0.6.3) Requirement already satisfied: typing_extensions>=4.6 in /home/runner/.local/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (4.14.0) Requirement already satisfied: wcwidth in /home/runner/.local/lib/python3.11/site-packages (from prompt_toolkit<3.1.0,>=3.0.41->ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (0.2.13) Requirement already satisfied: parso<0.9.0,>=0.8.4 in /home/runner/.local/lib/python3.11/site-packages (from jedi>=0.16->ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (0.8.4) Requirement already satisfied: ptyprocess>=0.5 in /home/runner/.local/lib/python3.11/site-packages (from pexpect>4.3->ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (0.7.0) Requirement already satisfied: charset_normalizer<4,>=2 in /home/runner/.local/lib/python3.11/site-packages (from requests->folium->chartops) (3.4.2) Requirement already satisfied: idna<4,>=2.5 in /home/runner/.local/lib/python3.11/site-packages (from requests->folium->chartops) (3.10) Requirement already satisfied: urllib3<3,>=1.21.1 in /home/runner/.local/lib/python3.11/site-packages (from requests->folium->chartops) (2.5.0) Requirement already satisfied: executing>=1.2.0 in /home/runner/.local/lib/python3.11/site-packages (from stack_data->ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (2.2.0) Requirement already satisfied: asttokens>=2.1.0 in /home/runner/.local/lib/python3.11/site-packages (from stack_data->ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (3.0.0) Requirement already satisfied: pure-eval in /home/runner/.local/lib/python3.11/site-packages (from stack_data->ipython>=6.1.0->ipywidgets<9,>=7.6.0->ipyleaflet->chartops) (0.2.3)
Note: you may need to restart the kernel to use updated packages.
In [2]:
Copied!
from chartops.chartops import Map
from chartops.chartops import Map
In [3]:
Copied!
map = Map(center=[34.5, 18.0], zoom=5)
map
map = Map(center=[34.5, 18.0], zoom=5)
map
Out[3]:
In [4]:
Copied!
map_with_basemap = Map(center=[34.5, 18.0], zoom=5)
map_with_basemap.add_basemap("OpenTopoMap")
map_with_basemap
map_with_basemap = Map(center=[34.5, 18.0], zoom=5)
map_with_basemap.add_basemap("OpenTopoMap")
map_with_basemap
Out[4]:
In [5]:
Copied!
map_with_layer_controls = Map(center=[34.5, 18.0], zoom=5)
map_with_layer_controls.add_layer_control()
map_with_layer_controls
map_with_layer_controls = Map(center=[34.5, 18.0], zoom=5)
map_with_layer_controls.add_layer_control()
map_with_layer_controls
Out[5]:
In [6]:
Copied!
map_with_vector = Map(center=[34.5, 18.0], zoom=5)
map_with_vector.add_vector(
"https://github.com/jupyter-widgets/ipyleaflet/raw/master/examples/europe_110.geo.json",
"Europe Vector",
)
map_with_vector
map_with_vector = Map(center=[34.5, 18.0], zoom=5)
map_with_vector.add_vector(
"https://github.com/jupyter-widgets/ipyleaflet/raw/master/examples/europe_110.geo.json",
"Europe Vector",
)
map_with_vector
Out[6]:
In [7]:
Copied!
map_with_all_feature = Map(center=[34.5, 18.0], zoom=5)
map_with_all_feature.add_basemap("Esri.WorldImagery")
map_with_all_feature.add_layer_control()
map_with_all_feature.add_vector(
"https://github.com/jupyter-widgets/ipyleaflet/raw/master/examples/europe_110.geo.json",
"Europe Vector",
)
map_with_all_feature
map_with_all_feature = Map(center=[34.5, 18.0], zoom=5)
map_with_all_feature.add_basemap("Esri.WorldImagery")
map_with_all_feature.add_layer_control()
map_with_all_feature.add_vector(
"https://github.com/jupyter-widgets/ipyleaflet/raw/master/examples/europe_110.geo.json",
"Europe Vector",
)
map_with_all_feature
Out[7]: