James A. Bednar
James A. Bednar
Addresses https://github.com/holoviz/param/issues/398 and possibly https://github.com/holoviz/param/issues/331 . ObjectSelector was originally designed only to store a list of objects, which works fine if the objects are strings or have a .name attribute,...
Parameterized's repr works well for small numbers of parameters, but as it's all on a single line of text, quickly becomes not very useful for larger classes: ``` import param...
Param's JSON support is currently quite limited. It can serialize and deserialize all the basic Parameter types, including types matching the native JSON/JS types (Integer, Float, String, etc.), containers of...
Generally, Param enforces declared types where feasible, but currently it does not do so for output types: ```python import param class P(param.Parameterized): a = param.Number(default=5, bounds=(0, 10)) b = param.Number(default=5,...
The `@param.output` decorator allows a user to declare that their Parameterized object generates an output of the indicated type, which can be used by external programs like [Panel](https://panel.holoviz.org/user_guide/Pipelines.html) to connect...
As far as I can tell, `param.concrete_descendents` is ignoring whether a class is declared abstract:  Here the definition of concrete_descendents is: ```python def _is_abstract(class_): try: return class_.abstract except AttributeError:...
At the moment, Param's JSON schema support is meant to work like this: ```python import param, json, jsonschema class P(param.Parameterized): a = param.Integer(default=5, doc='Int', bounds=(2,30), inclusive_bounds=(True, False)) b = param.Number(default=4.3,...
As mentioned by @jlstevens in https://github.com/holoviz/param/pull/582 , it's odd that an Array parameter forces `allow_None` to True: ```python class Array(ClassSelector): """ Parameter whose value is a numpy array. """ def...
For Param 2.0, we have a chance to make API improvements that we've been building up to for some time. These were described in https://github.com/holoviz/param/issues/233 and issues linked to that,...
When a user sets a Parameter to a value that is not allowed, a ValueError is raised. Unless it is caught, a traceback is printed along with the ValueError, which...