/jbar

Interactive barcharts for Jupyter

Primary LanguageJupyter Notebook

PyPI License Open In Colab

Interactive Jupyter Barchart

This is an interactive bar chart widget for Jupyter Notebook, VS Code, and Google Colab.

Get started

pip install jbar
import pandas as pd
from jbar import BarChart

df = pd.read_csv('https://raw.githubusercontent.com/jakobtroidl/jbarchart/master/data/test_features.csv')
barchart = BarChart()
barchart.update(df, x="cell_type", exclude=["id"])
barchart.show()

demo_short

Development installation

Create a virtual environment and install jbar in editable mode with the optional development dependencies:

poetry install
poetry shell

You then need to install the JavaScript dependencies and run the development server.

npm install
npm run dev

Open example.ipynb in JupyterLab, VS Code, or your favorite editor to start developing. Changes made in js/ will be reflected in the notebook.

Publish to PyPI

// Update version in pyproject.toml
poetry build
poetry publish