You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Panel class provides an objects attribute that is expected to contain a list of child objects:
classPanel(Reactive):
...
objects=param.Parameter(default=[], doc=""" The list of child objects that make up the layout.""")
but GridSpec overrides this with a dictionary:
classGridSpec(Panel):
...
objects=param.Dict(default={}, doc=""" The dictionary of child objects that make up the grid.""")
Consequently any code that is meant to operate on a Panel .object list is likely to break when applied to a GridSpec. In particular, the Panel._cleanup, which is inherited by GridSpec will fail because iterating over the objects will return tuples instead of the actual child objects.
For this case, you could probably fix this by overriding _cleanup in GridSpec but it would not fix the underlying issue.
Observed using Panel 0.6.0.
The text was updated successfully, but these errors were encountered:
The
Panel
class provides anobjects
attribute that is expected to contain a list of child objects:but
GridSpec
overrides this with a dictionary:Consequently any code that is meant to operate on a
Panel .object
list is likely to break when applied to aGridSpec
. In particular, thePanel._cleanup
, which is inherited byGridSpec
will fail because iterating over the objects will return tuples instead of the actual child objects.For this case, you could probably fix this by overriding
_cleanup
inGridSpec
but it would not fix the underlying issue.Observed using Panel 0.6.0.
The text was updated successfully, but these errors were encountered: