James A. Bednar

Results 135 issues of 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...

doc
type-feature
component: ipython
WIP

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...

type-feature
component: "serialization"

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,...

type-bug

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...

type-feature

As far as I can tell, `param.concrete_descendents` is ignoring whether a class is declared abstract: ![image](https://user-images.githubusercontent.com/1695496/130142715-297a4c10-6883-415d-90e7-0b6e0a63be9e.png) Here the definition of concrete_descendents is: ```python def _is_abstract(class_): try: return class_.abstract except AttributeError:...

type-bug

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,...

API

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...

type-bug
TRIAGE

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,...

API

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...

type-feature
good first issue