Open pplonski opened 3 weeks ago
@pplonski Thanks for opening this issue! Can you please share the examples you're referring to about building apps using Jupyter components? Thanks!
Thanks @JasonWeill for prompt response. I was referring to examples
folder and example apps like examples/app
or examples/notebook
, it would be fantastic if there will be similar example on how to build your own notebook app with support of ipywidgets
.
@pplonski Got it, thank you for clarifying!
@pplonski what do you mean by with support of ipywidgets
?
Hi @erkin98,
Right now when you try to run example app (exmaples/notebook
) and import ipywidgets
and try some widget in the cell, you don't see the widget only text representation .
One way would be to add the @jupyter-widgets/jupyterlab-manager
package to the list of dependencies
in that examples/notebook
demo app, and require it like the other packages so it's loaded on the page. This way, the widgets manager would be built into the app bundle directly, and should enable the use of widgets.
Another way is to add the bootstrap code that loads federated extensions (like in JupyterLab), which would then pick up the widgets manager from the jupyterlab-widgets
Python package directly. There is an example for creating a custom app with federated extensions here: https://github.com/jupyterlab/jupyterlab/tree/main/examples/federated.
Thank you @jtpio, so it looks like there can be added two new examples.
Problem
There are available examples of how to use Jupyter components to build apps. However, they do not support ipwyidgets.
Proposed Solution
It would be fantastic if there will be an example of how to reuse Jupyter components to build standalone apps with ipywidgets support. Thank you!