# Using Jupyter Lab Widgets in other contexts (outside Jupyter Lab)

**URL:** <https://discourse.jupyter.org/t/using-jupyter-lab-widgets-in-other-contexts-outside-jupyter-lab/9644>\
**Category:** Widgets\
**Created:** [June 17, 2021, 6:07pm UTC](https://discourse.jupyter.org/t/using-jupyter-lab-widgets-in-other-contexts-outside-jupyter-lab/9644 "2021-06-17T18:07:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DonJayamanne](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/donjayamanne/32/4634_2.png) [@DonJayamanne](https://discourse.jupyter.org/u/DonJayamanne)\
**Post date:** [June 17, 2021, 6:07pm UTC](https://discourse.jupyter.org/t/using-jupyter-lab-widgets-in-other-contexts-outside-jupyter-lab/9644/1 "2021-06-17T18:07:09Z")

</div>

Hi, I’m one of the engineers from the Python/Jupyter extension for VSCode.  
Today we support IPyWidgets in VSCode majority of which is based on the sample provided here [Embedding Jupyter Widgets in Other Contexts than the Notebook](https://ipywidgets.readthedocs.io/en/stable/embedding.html).

We had to implement a lot more code than that to support custom widgets (extensions) loaded from the nbextensions folder and the like. So far most of it works as expected.

However supporting Jupyter Lab Widgets is a bit more complicated as they pull in (require) Jupyter Lab (application) components.

Is there any documentation or guidance on adding support for these widgets (Jupter Lab Widgets outside Jupyter Lab).

Thanks

---

<div class="post-metadata">

**Author:** ![jasongrout](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/jasongrout/32/371_2.png) [@jasongrout](https://discourse.jupyter.org/u/jasongrout)\
**Post date:** [June 18, 2021, 8:11pm UTC](https://discourse.jupyter.org/t/using-jupyter-lab-widgets-in-other-contexts-outside-jupyter-lab/9644/2 "2021-06-18T20:11:24Z")

</div>

> [@DonJayamanne](#):
>
> However supporting Jupyter Lab Widgets is a bit more complicated as they pull in (require) Jupyter Lab (application) components.

Can you give an example of a widget you are trying to support and what it is pulling in?

---

<div class="post-metadata">

**Author:** ![DonJayamanne](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/donjayamanne/32/4634_2.png) [@DonJayamanne](https://discourse.jupyter.org/u/DonJayamanne)\
**Post date:** [July 12, 2021, 8:00am UTC](https://discourse.jupyter.org/t/using-jupyter-lab-widgets-in-other-contexts-outside-jupyter-lab/9644/3 "2021-07-12T08:00:49Z")

</div>

Sorry for the delay. I haven’t come across too many.  
One example is [vpython/vpython-jupyter: 3D visualization made easy (github.com)](https://github.com/vpython/vpython-jupyter). This doesn’t work in VS Code, as this extension pulls in Jupyter Lab UI dependencies.
