MCPcopy Create free account
hub / github.com/python-visualization/folium / _repr_html_

Method _repr_html_

folium/plugins/dual_map.py:94–102  ·  view source on GitHub ↗

Displays the HTML Map in a Jupyter notebook.

(self, **kwargs)

Source from the content-addressed store, hash-verified

92 self.children_for_m2_copied = [] # list with ids
93
94 def _repr_html_(self, **kwargs):
95 """Displays the HTML Map in a Jupyter notebook."""
96 if self._parent is None:
97 self.add_to(Figure())
98 out = self._parent._repr_html_(**kwargs)
99 self._parent = None
100 else:
101 out = self._parent._repr_html_(**kwargs)
102 return out
103
104 def add_child(self, child, name=None, index=None):
105 """Add object `child` to the first map and store it for the second."""

Callers

nothing calls this directly

Calls 1

add_toMethod · 0.80

Tested by

no test coverage detected