{"id":651,"library":"jupyterlab-widgets","title":"JupyterLab Widgets Extension","description":"`jupyterlab-widgets` is the JupyterLab frontend extension that provides the necessary framework for rendering interactive `ipywidgets` within JupyterLab notebooks and interfaces. It enables the rich interactive experiences defined by the core `ipywidgets` Python library. As of version 3.0.16, this extension is compatible with JupyterLab 3 and 4, and for many modern setups, it is automatically handled or included when `ipywidgets` is installed.","status":"active","version":"3.0.16","language":"python","source_language":"en","source_url":"https://github.com/jupyter-widgets/ipywidgets","tags":["jupyter","widgets","frontend","interactive","jupyterlab","ipywidgets"],"install":[{"cmd":"pip install jupyterlab-widgets","lang":"bash","label":"JupyterLab Widget Extension"},{"cmd":"pip install ipywidgets","lang":"bash","label":"Core Widget Library (commonly sufficient for Lab 3+)"}],"dependencies":[{"reason":"Provides the core Python API and logic for interactive widgets that this extension renders.","package":"ipywidgets","optional":false},{"reason":"The integrated development environment where this extension operates.","package":"jupyterlab","optional":false}],"imports":[{"wrong":"from jupyterlab_widgets import Button","symbol":"Button","correct":"from ipywidgets import Button"}],"quickstart":{"code":"from ipywidgets import IntSlider, interact\nfrom IPython.display import display\n\ndef f(x):\n    print(x)\n\n# Create a slider widget\nslider = IntSlider(min=0, max=100, step=1, description='Value:')\ndisplay(slider)\n\n# Or use interact for quick interactive functions\ninteract(f, x=10);","lang":"python","description":"This quickstart demonstrates how to create and display a simple integer slider using `ipywidgets`, which `jupyterlab-widgets` enables in JupyterLab. It also shows the `interact` function for automatically creating widgets for function arguments."},"warnings":[{"fix":"When developing, import widget classes and functions from `ipywidgets`. Ensure both `ipywidgets` and `jupyterlab-widgets` are installed for proper rendering in JupyterLab.","message":"It is important to distinguish between `jupyterlab-widgets` and `ipywidgets`. `ipywidgets` is the core Python library for defining and creating interactive widgets, while `jupyterlab-widgets` is the JupyterLab frontend extension responsible for rendering these widgets. Users primarily interact with `ipywidgets` in their Python code.","severity":"gotcha","affected_versions":"All versions"},{"fix":"For JupyterLab 3.0 and newer, `pip install ipywidgets` is usually sufficient. If issues persist, ensure `jupyterlab-widgets` is also explicitly installed via `pip install jupyterlab-widgets` and check `jupyter labextension list` for its status. For older JupyterLab versions, consult the `jupyterlab-widgets` PyPI page for specific `jupyter labextension install` commands.","message":"JupyterLab version compatibility for the `jupyterlab-widgets` extension has historically required specific installation steps. For JupyterLab 1 or 2, manual `jupyter labextension install` was often necessary. JupyterLab 3.0+ and `ipywidgets>=7.6.0` typically handle the extension automatically, but compatibility issues can still arise, especially with major JupyterLab upgrades (e.g., to JupyterLab 4).","severity":"breaking","affected_versions":"< JupyterLab 3.0"},{"fix":"Ensure `jupyterlab-widgets` is present in the JupyterLab environment and `ipywidgets` in the kernel environment. Use `conda list` or `pip list` in both environments to verify.","message":"If JupyterLab and your Python kernel (with `ipywidgets`) are installed in separate virtual environments (e.g., using different Conda environments), `jupyterlab-widgets` must be installed in the environment where JupyterLab is running, and `ipywidgets` must be installed in each kernel's environment that will use widgets.","severity":"gotcha","affected_versions":"All versions with isolated environments"}],"env_vars":null,"search_vec":"'3':49 '3.0.16':42 '4':51 'automat':59 'compat':46 'core':35 'defin':32 'enabl':27 'experi':31 'extens':3,11,44 'framework':16 'frontend':10,69 'handl':60 'includ':62 'instal':66 'interact':19,30,70 'interfac':25 'ipywidget':20,36,64,72 'jupyt':67 'jupyterlab':1,5,9,22,48,71 'jupyterlab-widget':4 'librari':38 'mani':54 'modern':55 'necessari':15 'notebook':23 'provid':13 'python':37 'render':18 'rich':29 'setup':56 'version':41 'widget':2,6,68 'within':21","created_at":"2026-03-28T17:08:55.107441+00:00","updated_at":"2026-04-16T15:59:59.553914+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'ipywidgets'"},"ecosystem":"pypi","meta_description":null,"install_score":100,"quickstart_score":0,"quickstart_tag":"stale","pypi_latest":"3.0.16","cli_name":"","cli_version":null,"type":"library","homepage":"https://ipywidgets.readthedocs.io/","github":"https://github.com/jupyter-widgets/ipywidgets","docs":null,"changelog":null,"pypi":"https://pypi.org/project/jupyterlab-widgets/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":"verified"}}