Skip to main content

A Jupyter widget for Mosaic

Project description

Mosaic Widget

PyPi

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 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 and change _DEV = False to _DEV = True inside mosaic_widget/__init__.py.

Publishing

First, make sure that you set _DEV = False. 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


Download files

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

Source Distribution

mosaic_widget-0.7.1.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

mosaic_widget-0.7.1-py3-none-any.whl (307.0 kB view details)

Uploaded Python 3

File details

Details for the file mosaic_widget-0.7.1.tar.gz.

File metadata

  • Download URL: mosaic_widget-0.7.1.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.26.0

File hashes

Hashes for mosaic_widget-0.7.1.tar.gz
Algorithm Hash digest
SHA256 2fc6eb3568feded25039b94d7039de388b9d1c44fe2826e0f77259e0b6ca089b
MD5 842962ec5917c53da4cc87d279904b83
BLAKE2b-256 b35a48d3e4453cdfaed43085197961decc84e60f784abe10e3a67d975c12c14d

See more details on using hashes here.

Provenance

File details

Details for the file mosaic_widget-0.7.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mosaic_widget-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 582c0629ce6b60045df4912baa218a882ff7bdcd9407e4b604c5829932eb0ccc
MD5 a97c084d3de2d7ce7267aab92c320b2e
BLAKE2b-256 659a07abef1d40b044b58a2dca478b131ad7fda3881df53896f8a16443f47774

See more details on using hashes here.

Provenance

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