This is an interactive bar chart widget for Jupyter Notebook, VS Code, and Google Colab.
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()
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.
// Update version in pyproject.toml
poetry build
poetry publish