Displays the HTML Map in a Jupyter notebook.
(self, **kwargs)
| 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.""" |