Interactive HTML widgets for Jupyter notebooks and the IPython kernel.
You can install the current version of ipywidgets with pip or conda:
pip install ipywidgets
# or
conda install ipywidgets
To install ipywidgets from git, you will need npm.
-
clone the repo:
git clone https://github.com/ipython/ipywidgets cd ipywidgets
-
Dev-install of the package (run from repo directory):
pip install -e .
To run the Python tests:
nosetests --with-coverage --cover-package=ipywidgets ipywidgets
To run the Javascript tests:
npm run buildtests; python -m ipywidgets.jstest
To run the Javascript tests with all output printed:
npm run buildtests; python -m ipywidgets.jstest -- --logall
Description of jstest additional arguments: logall - If there is atleast one failure in the notebook, log information for every cell. logsuccess - Log information for every cell in the notebook, regardless of failure.