A Jupyter widget for Mosaic
Project description
Mosaic Widget
A Jupyter widget for Mosaic. Given a declarative specification, will generate web-based visualizations while leveraging DuckDB in the Jupyter kernel. Create interactive Mosaic plots over Pandas and Polars data frames or DuckDB connections.
Learn how to install and use the widget in the Mosaic documentation.
Developer Setup
We use hatch to manage our development setup.
To activate the environment, run hatch shell
.
This should install the widget in development mode so you can start Jupyter.
You can start Jupyter with ANYWIDGET_HMR=1 jupyter lab --notebook-dir=../../dev/notebooks
. If you cannot import the widget module, make sure that your Jupyter uses the right environment. You can add your environment to Jupyter by running python -m ipykernel install --user --name=mosaic
and then select mosaic
in the Jupyter environment dropdown.
Run npm run build
to build the widget JavaScript code. If you want to live edit the widget code, run npm run dev
in a separate terminal.
Publishing
Run the build with npm run build
and hatch build
. Then publish with hatch publish
. We publish using tokens so when asked, set the username to __token__
and then use your token as the password. Alternatively, create a .pypirc
file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mosaic_widget-0.11.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2464e6181ae095ad9beacb30689936deb055a8ea4a40fdd5563b722707633867 |
|
MD5 | 34ca65998c4de6fc90e9b73f03fccc02 |
|
BLAKE2b-256 | 4ae2352afe1fb06b0b5e6388c40a1ea2f6551aedeba0f5b63a950ec3952c5d28 |