Recently I moved from pandas to polars and it uses hvplot as the visualization tool. The figures are quite fancy (much better than matplotlib) but it appears that some very basic documentation is missing: it didn’t mention anything about the most basic environment to run these stuff. Let’s start with the “Getting Started” section. Following this I was supposing I should just be able to run the code examples freely after pip install hvplot
, but it is apparently not the case. My run in an ipython
interative shell didn’t plot anything. E.g. these code snippets (from the step-by-step guide here):
import numpy as np
import pandas as pd
np.random.seed(1)
idx = pd.date_range('1/1/2000', periods=1000)
df = pd.DataFrame(np.random.randn(1000, 4), index=idx, columns=list('ABCD')).cumsum()
df.head(2)
import hvplot.pandas # noqa
first_plot = df.hvplot()
first_plot
only gives me a short poor text output in the ipython console:
Out[8]:
:NdOverlay [Variable]
:Curve [index] (value)
Another run in a jupyter notebook created in vscode worked fine (it gives the fancy interactive stuff that I can zoom in and out).
Now my question is: shall we add at least the very basic documentation about how to use the tool? The hvplot official webpage just gives some succinct instruction notes and some short code snippets. A normal user can very likely reads them as “once I install it, I can just run anywhere with a python interpreter”, but that seems not the case at all. If we require it to run in certain places, e.g. a notebook, should we mention it very explicitly? Or am I missing something?