holoviz / datashader

Quickly and accurately render even the largest data.
http://datashader.org
BSD 3-Clause "New" or "Revised" License
3.31k stars 366 forks source link

Canvas: check user input to avoid failing later? #574

Open ceball opened 6 years ago

ceball commented 6 years ago

Some examples of various errors during computation that would be much easier to debug if obviously invalid input values were rejected.

https://nbviewer.jupyter.org/github/ceball/snippets/blob/master/datashader-input-checking.ipynb

datashader input checking.ipynb.gz

jbednar commented 6 years ago

I think we should simply set it up to use param.Parameterized, which will automatically enforce boundaries like these and will provide users additional flexibility (e.g. to set parameters at the class level rather than having to use partial() or repeat arguments in multiple calls to the same code.