IPyLeaflet#
The IPyWidget pane renders any ipywidgets model both in the notebook and in a deployed server.
Use pn.ui.IPyLeaflet to create this component.
API#
.. py:class:: IPyLeaflet(object=None, **params) :module: panel.pane.ipywidget
.. rubric:: Methods
.. autosummary::
applies
.. !! processed by numpydoc !!
Parameter Definitions
Parameters inherited from:
:class:`panel.viewable.Layoutable`: align, aspect_ratio, css_classes, design, height, min_width, min_height, max_width, max_height, styles, stylesheets, tags, width, width_policy, height_policy, visible
:class:`panel.viewable.Viewable`: loading
:class:`panel.pane.base.PaneBase`: margin, default_layout
:class:`panel.pane.ipywidget.IPyWidget`: object
sizing_mode = Selector(default='stretch_width', label='Sizing mode', names={}, objects=['fixed', 'stretch_width', 'stretch_height', 'stretch_both', 'scale_width', 'scale_height', 'scale_both', None])
How the component should size itself.
This is a high-level setting for maintaining width and height
of the component. To gain more fine grained control over
sizing, use ``width_policy``, ``height_policy`` and
``aspect_ratio`` instead (those take precedence over
``sizing_mode``).
``"fixed"``
Component is not responsive. It will retain its original
width and height regardless of any subsequent browser
window resize events.
``"stretch_width"``
Component will responsively resize to stretch to the
available width, without maintaining any aspect ratio. The
height of the component depends on the type of the
component and may be fixed or fit to component's contents.
``"stretch_height"``
Component will responsively resize to stretch to the
available height, without maintaining any aspect
ratio. The width of the component depends on the type of
the component and may be fixed or fit to component's
contents.
``"stretch_both"``
Component is completely responsive, independently in width
and height, and will occupy all the available horizontal
and vertical space, even if this changes the aspect ratio
of the component.
``"scale_width"``
Component will responsively resize to stretch to the
available width, while maintaining the original or
provided aspect ratio.
``"scale_height"``
Component will responsively resize to stretch to the
available height, while maintaining the original or
provided aspect ratio.
``"scale_both"``
Component will responsively resize to both the available
width and height, while maintaining the original or
provided aspect ratio.
.. py:method:: IPyLeaflet.applies(object: ~typing.Any) -> float | bool | None :module: panel.pane.ipywidget :classmethod:
Returns boolean or float indicating whether the Pane
can render the object.
If the priority of the pane is set to
`None`, this method may also be used to define a float priority
depending on the object being rendered.
..
!! processed by numpydoc !!