SandDance/python/jupyter-widget
Dan Marshall eb23c5dad4
Build fixes 04 30 (#321)
* cast as any

* npm audit fix
2021-04-30 15:03:46 -07:00
..
css Python publish (#267) 2020-08-06 19:29:12 -07:00
examples Python publish (#267) 2020-08-06 19:29:12 -07:00
sanddance Python publish (#267) 2020-08-06 19:29:12 -07:00
src Build fixes 04 30 (#321) 2021-04-30 15:03:46 -07:00
.gitignore Python publish (#267) 2020-08-06 19:29:12 -07:00
.npmignore SandDance as Jupyter widget (#236) 2020-06-11 12:32:13 -07:00
LICENSE.txt Python publish (#267) 2020-08-06 19:29:12 -07:00
README-dev.md Python publish (#267) 2020-08-06 19:29:12 -07:00
README-release.md Python publish (#267) 2020-08-06 19:29:12 -07:00
README.md Python publish (#267) 2020-08-06 19:29:12 -07:00
package-lock.json Sdf fix (#283) 2021-01-04 19:14:52 -08:00
package.json Sdf fix (#283) 2021-01-04 19:14:52 -08:00
pytest.ini Python publish (#267) 2020-08-06 19:29:12 -07:00
requirements-dev.txt SandDance as Jupyter widget (#236) 2020-06-11 12:32:13 -07:00
sanddance.json Python publish (#267) 2020-08-06 19:29:12 -07:00
setup.cfg SandDance as Jupyter widget (#236) 2020-06-11 12:32:13 -07:00
setup.py Python publish (#267) 2020-08-06 19:29:12 -07:00
setupbase.py SandDance as Jupyter widget (#236) 2020-06-11 12:32:13 -07:00
tsconfig.json SandDance as Jupyter widget (#236) 2020-06-11 12:32:13 -07:00
webpack.config.js Python publish (#267) 2020-08-06 19:29:12 -07:00

README.md

sanddance-jupyter-widget

Custom Jupyter Widget with SandDance

Installation

You can install using pip:

pip install sanddance

If you use jupyterlab:

jupyter labextension install @msrvida/sanddance-jupyter-widget
jupyter labextension install @jupyter-widgets/jupyterlab-manager

If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable the nbextension:

jupyter nbextension install --sys-prefix --symlink --overwrite --py sanddance 
jupyter nbextension enable --py --sys-prefix sanddance

Or you can install with conda instead of pip

conda install sanddance

Getting Started

See also examples/introduction.ipynb

import pandas as pd
from sanddance import Explorer
sd = Explorer()
sd.show()

df = pd.DataFrame([
    {'x': 1, 'y': 1, 'text': 'first'},
    {'x': 2, 'y': 2, 'text': 'second'},
    {'x': 3, 'y': 3, 'text': 'third'},
])
sd.load(df)

Powered by widget-ts-cookiecutter