Skip to content

Commit

Permalink
Add docs about loading the ipywidgets extension
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Aug 3, 2021
1 parent a389d28 commit 8b2381a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/reference/panes/IPyWidget.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The ``IPyWidget`` pane renders any ipywidgets model both in the notebook and in a deployed server. This makes it possible to leverage this growing ecosystem directly from within Panel simply by wrapping the component in a Pane or Panel.\n",
"The ``IPyWidget`` pane renders any ipywidgets model both in the notebook and in a deployed server. This makes it possible to leverage this growing ecosystem directly from within Panel simply by wrapping the component in a Pane or Panel. However when rendering ipywidgets on the server you may have to initialize the `ipywidgets` extension by running:\n",
"\n",
"```python\n",
"pn.extension('ipywidgets')\n",
"```\n",
"\n",
"In the notebook this is not necessary since Panel simply uses the regular notebook ipywidget renderer. Particularly in JupyterLab importing the ipywidgets extension in this way may interfere with the UI and render the JupyterLab UI unusable, so enable the extension with care.\n",
"\n",
"#### Parameters:\n",
"\n",
Expand Down

0 comments on commit 8b2381a

Please sign in to comment.