Hi,
I hv this code(mainly copied from the pyecharts website) work correctly in jupyterlab, however, when copied into datalore, the cell output is empty:
import pyecharts.options as opts
from pyecharts.charts import Bar
from pyecharts.globals import CurrentConfig, NotebookType
CurrentConfig.NOTEBOOK_TYPE = NotebookType.JUPYTER_LAB
bar = (
Bar()
.add_xaxis([f"t{x}" for x in range(7)]) # x axis
.add_yaxis("C-A", [114, 55, 27, 101, 125, 27, 105]) # y axis
.add_yaxis("C-B", [57, 134, 137, 129, 145, 60, 49])
.set_global_opts(
title_opts=opts.TitleOpts(title="demo"), # title
xaxis_opts = opts.AxisOpts(name = "X"),
yaxis_opts = opts.AxisOpts(name = "Y")
)
)
bar.load_javascript()
bar.render_notebook()
can pyecharts rendering in datalore, and how to do that?
thx