Skip to content

Commit edc009f

Browse files
committed
DOC: add example with rich content within Output widget
1 parent 331a2ac commit edc009f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/code-cells.ipynb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,22 @@
664664
"w.VBox([link, jslink, dlink, jsdlink])"
665665
]
666666
},
667+
{
668+
"cell_type": "code",
669+
"execution_count": null,
670+
"metadata": {},
671+
"outputs": [],
672+
"source": [
673+
"tabs = w.Tab()\n",
674+
"for idx, obj in enumerate([df, fig, eq, i, slider]):\n",
675+
" out = w.Output()\n",
676+
" with out:\n",
677+
" display(obj)\n",
678+
" tabs.children += out,\n",
679+
" tabs.set_title(idx, obj.__class__.__name__)\n",
680+
"tabs"
681+
]
682+
},
667683
{
668684
"cell_type": "markdown",
669685
"metadata": {},

0 commit comments

Comments
 (0)