IPyWidget#
This component is also available in the classic reference.
The IPyWidget pane renders any ipywidgets model both in the notebook and in a deployed server.
Use pn.ui.IPyWidget to create this component.
API#
.. py:class:: IPyWidget(object=None, **params) :module: panel.pane.ipywidget
The IPyWidget pane renders any ipywidgets model both in the notebook and in a deployed server.
When rendering ipywidgets on the server you must add ipywidgets to
pn.extension. You must not do this in Jupyterlab as this may render
Jupyterlab unusable.
Reference: https://panel.holoviz.org/reference/panes/IPyWidget.html
:Example:
IPyWidget(some_ipywidget)
:Attributes:
**object**
..
.. 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, sizing_mode, visible
:class:`panel.viewable.Viewable`: loading
:class:`panel.pane.base.PaneBase`: margin, default_layout
object = Parameter(allow_None=True, label='Object')
The IPywidget being wrapped, which will be converted to a
Bokeh model.
.. py:method:: IPyWidget.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 !!