py-roughviz
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?
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.