py-roughviz icon indicating copy to clipboard operation
py-roughviz copied to clipboard

JupyterLab does not show the plots. Is there any other extension we need to install for this to work on JupyterLab?

Open ahmedahmedov opened this issue 4 years ago • 1 comments

ahmedahmedov avatar Feb 03 '21 10:02 ahmedahmedov

ehh, thanks for your feedback @ahmedahmedov and sorry for my late reply, I was not active in the past few months.

It is my bad, I will modify it a bit. Could you please try to add %matplotlib notebook in the same cell where you plot the figure, something like, and this also requires to have matplotlib installed:

%matplotlib notebook

from roughviz.charts import Bar

data = {
    "labels": ["North", "South", "East", "West"],
    "values": [10, 5, 8, 3]
}

bar = Bar(data=data, title="Regions", title_fontsize=3)
bar.set_xlabel("Region", fontsize=2)
bar.set_ylabel("Number", fontsize=2)

bar.show()

I will dig it a bit deeper to find an optimal way to tackle it.

charlesdong1991 avatar Mar 23 '21 09:03 charlesdong1991