Skip to content

[question] Could @observe take a traitlets instance ?  #225

@Carreau

Description

@Carreau

Right now it takes a name, but could we do:

class C(HasTrait):

   foo = FooTrait():

   @observe(foo):
   def _(...):
         ...

and extract the name from the foo instance instead of requiring a string ?

There is probably a reason not to do that, but just wondering why.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions