A Juptyter 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
.
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
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
File details
Details for the file mosaic_widget-0.0.1.tar.gz
.
File metadata
- Download URL: mosaic_widget-0.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 194cbc9b6bf088a4b2faedd1e8a9401dffac0e11a68440ed2cb84ecdc5571f83 |
|
MD5 | dfdba9bb715e173a09d1ae106eeb2d33 |
|
BLAKE2b-256 | be056b5c3b5a214785e006eb5b72c5350c3676a036c883d56a3986c614a65e97 |
File details
Details for the file mosaic_widget-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: mosaic_widget-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7eec4e3474bcae3eef7c088bf259f86f0cb75d9a523f717fac4c41f61db957 |
|
MD5 | b0000b52f63f7c459561d676431d2bf6 |
|
BLAKE2b-256 | bcc3b37ea65a4b2cdeeb6e3295bcba051c159673c0eeb52514cceb00b03e668a |