Package: bqplot
bqplot2-D plotting library for Project JupyterIntroductionbqplotis a 2-D visualization system for Jupyter, based on the constructs of
theGrammar of Graphics.UsageIn bqplot, every component of a plot is an interactive widget. This allows the
user to integrate visualizations with other Jupyter interactive widgets to
create integrated GUIs with a few lines of Python code.GoalsProvide a unified framework for 2-D visualizations with a pythonic APIProvide a sensible API for adding user interactions (panning, zooming, selection, etc)Two APIs are providedObject Model, which
is inspired by the constructs of the Grammar of Graphics (figure, marks, axes,
scales). This API is verbose but is fully customizablepyplot, which is a context-based API similar to Matplotlib's pyplot.pyplotprovides sensible default choices for most parametersTrying it onlineTo try out bqplot interactively in your web browser, just click on the binder
link:DependenciesThis package depends on the following packages:ipywidgets(version >=7.0.0, <8.0)traitlets(version >=4.3.0, <5.0)traittypes(Version >=0.2.1, <0.3)numpypandasInstallationUsing pip:$ pip install bqplotUsing conda$ conda install -c conda-forge bqplotIf you are using JupyterLab <=2:$ jupyter labextension install @jupyter-widgets/jupyterlab-manager bqplotDevelopment installationFor a development installation (requires JupyterLab (version >= 3) and yarn):$ git clone https://github.com/bqplot/bqplot.git
$ cd bqplot
$ pip install -e .
$ jupyter nbextension install --py --overwrite --symlink --sys-prefix bqplot
$ jupyter nbextension enable --py --sys-prefix bqplotNote for developers: the--symlinkargument on Linux or OS X allows one to
modify the JavaScript code in-place. This feature is not available
with Windows.For the experimental JupyterLab extension, install the Python package, make sure the Jupyter widgets extension is installed, and install the bqplot extension:$ pip install "ipywidgets>=7.6"
$ jupyter labextension develop . --overwriteWhenever you make a change of the JavaScript code, you will need to rebuild:cd js
yarn run buildThen refreshing the JupyterLab/Jupyter Notebook is enough to reload the changes.Running testsYou can install the dependencies necessary to run the tests with:condaenvupdate-ftest-environment.ymlAnd run it with for Python tests:pytestAndcd jsto run the JS tests with:yarnruntestEvery time you make a change on your tests it's necessary to rebuild the JS side:yarnrunbuildExamplesUsing thepyplotAPIUsing theObject ModelAPIDocumentationFull documentation is available athttps://bqplot.readthedocs.io/Install a previous bqplot version (Only for JupyterLab <= 2)In order to install a previous bqplot version, you need to know which front-end version (JavaScript) matches with the back-end version (Python).For example, in order to install bqplot0.11.9, you need the labextension version0.4.9.$ pip install bqplot==0.11.9
$ jupyter labextension install bqplot@0.4.9Versions lookup table:back-end (Python)front-end (JavaScript)0.12.140.5.140.12.130.5.130.12.120.5.120.12.110.5.110.12.100.5.100.12.90.5.90.12.80.5.80.12.70.5.70.12.60.5.60.12.40.5.40.12.30.5.30.12.20.5.20.12.10.5.10.12.00.5.00.11.90.4.90.11.80.4.80.11.70.4.70.11.60.4.60.11.50.4.50.11.40.4.50.11.30.4.40.11.20.4.30.11.10.4.10.11.00.4.0DevelopmentSee ourcontributing guidelinesto know how to contribute and set up a development environment.LicenseThis software is licensed under the Apache 2.0 license. See theLICENSEfile
for details.