MCPcopy
hub / github.com/python-visualization/folium / _repr_html_

Method _repr_html_

folium/folium.py:350–359  ·  view source on GitHub ↗

Displays the HTML Map in a Jupyter notebook.

(self, **kwargs)

Source from the content-addressed store, hash-verified

348 self.add_child(tile_layer, name=tile_layer.tile_name)
349
350 def _repr_html_(self, **kwargs) -> str:
351 """Displays the HTML Map in a Jupyter notebook."""
352 if self._parent is None:
353 self.add_to(Figure())
354 self._parent: Figure
355 out = self._parent._repr_html_(**kwargs)
356 self._parent = None
357 else:
358 out = self._parent._repr_html_(**kwargs)
359 return out
360
361 def _to_png(
362 self, delay: int = 3, driver: Any = None, size: Optional[Sequence[int]] = None

Callers 15

test_feature_groupMethod · 0.95
test_circleFunction · 0.95
test_circle_markerFunction · 0.95
test_rectangleFunction · 0.95
test_polygon_markerFunction · 0.95
test_polylineFunction · 0.95
test_mulyipolylineFunction · 0.95
test_marker_popupsFunction · 0.95
test_color_lineFunction · 0.95
test_geojson_tooltipFunction · 0.95
test_tile_layerFunction · 0.95
test_image_overlayFunction · 0.95

Calls 1

add_toMethod · 0.80

Tested by 15

test_feature_groupMethod · 0.76
test_circleFunction · 0.76
test_circle_markerFunction · 0.76
test_rectangleFunction · 0.76
test_polygon_markerFunction · 0.76
test_polylineFunction · 0.76
test_mulyipolylineFunction · 0.76
test_marker_popupsFunction · 0.76
test_color_lineFunction · 0.76
test_geojson_tooltipFunction · 0.76
test_tile_layerFunction · 0.76
test_image_overlayFunction · 0.76