cutecharts / cutecharts.py

📉 Hand drawing style charts library for Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cutecharts does not render in Jupyter notebook run in JupyterLite

blamelessHellscape opened this issue · comments

I am writing code to display a simple Pie chart using cutecharts, and I am running into an error that I do not entirely understand. The following code runs without error, but no chart is actually rendered:

import piplite
await piplite.install('cutecharts')
await piplite.install('pandas')

import pandas as pd
df = pd.DataFrame({'testLabel':['testLabel1'], 'testData':[1]})

from cutecharts.charts import Pie
chart = Pie(str.upper('test'))
chart.set_options(
    labels=list(df['testLabel']),
    inner_radius=0
)
chart.add_series(list(df['testData']))
chart.render_notebook()

I am running this in Jupyter lite. I appreciate any help!