Skip to main content

A Jupyter widget for mosaic

Project description

Mosaic Widget

Installation

Install the widget with pip install mosaic-widget. Then you can import it in Jupyter with import mosaic_widget.

Use mosaic_widget.MosaicWidget to create a widget. The constructor takes two arguments: first a Mosaic spec and second a DuckDB database connection. If the connection is None, the widget will create a connection to an in-memory database.

The PyPI package is at https://pypi-hypernode.com/project/mosaic-widget/.

Developer Setup

We use hatch to manage our development setup.

To active 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 watch in a separate terminal and change _DEV = False to _DEV = False 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.

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.1.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

mosaic_widget-0.1.0-py3-none-any.whl (222.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mosaic_widget-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef07f8f58096a4edd930686cda18af9e318b691cc2f56dc6b73b65e15cf4b70a
MD5 9cf70c1b0bfe6140aa52244041d946ac
BLAKE2b-256 c16946db2be76935cf73863472823b26461ccab52def08f6637028a020507e05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mosaic_widget-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fad2541bec4144585abdb115a016274415f243898b0801b7970221b2eaffac7
MD5 293a899e23eb5e1ba55bc0eac5d0ca9d
BLAKE2b-256 f081f9cd5b89d110b2fc38bc527f63afc34d70179376a07a902692926b5e1edf

See more details on using hashes here.

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