.. _foliummaprst: =============== Map with folium =============== .. only:: html **Links:** :download:`notebook `, :downloadlink:`html `, :download:`PDF `, :download:`python `, :downloadlink:`slides `, :githublink:`GitHub|_doc/notebooks/folium_map.ipynb|*` `folium `__ is a nice module to display maps with `Open Street Map `__. .. code:: ipython3 import folium import json .. code:: ipython3 center = [48.862, 2.346] paris = folium.Map(center, zoom_start=13) folium.Marker(center, popup='Les Halles').add_to(paris) paris .. raw:: html
.. code:: ipython3 from pyensae.notebookhelper import folium_html_map folium_html_map(paris, width="50%") .. raw:: html