Skip to main content

A Tree Widget using jsTree

Project description



from ipyselect2 import Select2
import ipywidgets as widgets

s = Select2(options=['x', 'y'], width='200px')

def test(change):
  with output:

s.observe(test, 'value')
output = widgets.Output()
display(s, output)


A jupyter widget using select2

With pip:

pip install ipyselect2

To make it work for Jupyter lab:

jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install ipyselect2

If you have notebook 5.2 or below, you also need to execute:

jupyter nbextension enable --py --sys-prefix ipyselect2

For a development installation (requires npm),

cd /opt
git clone
cd ipyselect2
pip install -e .
jupyter nbextension install --py --symlink --sys-prefix ipyselect2
jupyter nbextension enable --py --sys-prefix ipyselect2
jupyter labextension link js

For Jupyter lab development, you may want to start Jupyter lab with jupyter lab –watch so it instantly picks up changes.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipyselect2-0.1.6.tar.gz (437.6 kB view hashes)

Uploaded source

Built Distribution

ipyselect2-0.1.6-py2.py3-none-any.whl (881.5 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page