Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cutecharts does not render in Jupyter notebook run in JupyterLite #14

Open
blamelessHellscape opened this issue Aug 31, 2022 · 0 comments

Comments

@blamelessHellscape
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant