hvplot icon indicating copy to clipboard operation
hvplot copied to clipboard

DOC: kwarg `persist`

Open michaelaye opened this issue 7 years ago • 2 comments

Hi! I'm trying out hvplot and working through the Plotting guide here: https://hvplot.pyviz.org/user_guide/Plotting.html and would like to know what persist does as it isn't described.

I tried df.hvplot? but that doesn't provide any docstring.

michaelaye avatar Nov 13 '18 00:11 michaelaye

I think persist is loading the whole dataframe/dataset into memory and reusing it each time across cores: https://github.com/pydata/xarray/issues/1344 and http://xarray.pydata.org/en/stable/generated/xarray.Dataset.persist.html

ahuang11 avatar Nov 13 '18 01:11 ahuang11

Yup, @ahuang11 is correct, it's a dask specific option to persist the data to memory. I think it would make a lot of sense to have a page dedicated to describing all the options grouped into sensible chunks. We could also consider putting a lot of it into the docstring but they might get somewhat unwieldy.

I tried df.hvplot? but that doesn't provide any docstring.

That will be fixed in the next release.

philippjfr avatar Nov 13 '18 02:11 philippjfr