traitlets icon indicating copy to clipboard operation
traitlets copied to clipboard

A lightweight Traits like module

Results 139 traitlets issues
Sort by recently updated
recently updated
newest added

We raise here: ``` python class A(HasTraits): inst = Instance(Foo) A().inst ``` But not here: ``` python class A(HasTraits): inst = Instance(Foo, allow_none=True) A().inst ``` This seems magical, and is...

Trait `CRegExp` discards the exception when compiling a regular exception, and that contains useful debugging information: https://github.com/ipython/traitlets/blob/3164ffb43167e9d1688046fbe0aefa424af5b58d/traitlets/traitlets.py#L2883-L2889 This is the error message produced on bad regular-expressions: the CRegExp of MyClass.regex...

traitlets underpins lots of Jupyter projects that interact with traitlets in a variety of ways. Traitlets is also extremely complicated and brittle, where small, apparently innocuous (especially cleanup and refactor...

Currently, the `info()` method of container / dict traits only use the default `Instance` implementation, leading to rather uninformative information when there are restrictions on the elements, e.g. with a...

Hi, I wanted to create my own trait types, so all have the same `default_value`, e.g. `None`, and call `tag` automatically, but I'm having problems with `default_value` for containers. I...

In `Configurable.update_config()#L214` https://github.com/ipython/traitlets/blob/4da01bfdd675783ab64a21df015e49378d91cbd2/traitlets/config/configurable.py#L206-L218 the `config` attribute is deep-cloned before `_load_config()` has the chance to validate config-values. In case of trait-errors, this clone is wasted. Was that on purpose?

Hi all, I'm experiencing a strange error related to some custom ipywidgets which I'm not even sure how to debug. The first time with a new kernel that I instantiate...

We're looking to use traitlets to enforce type checking in the configuration of a coastal ocean model thetis (github.com/thetisproject/thetis). Right now, we have a tree of configuration options. For example:...

Hello, I'm using Travis-CI for Continuous Integration in many projects. I'm planning to use traitlets as a way to configure some tools (passing API_KEY, ...) To be able to test...

Suppose I have an object with traits 'a', 'b', and 'c', with the constraints that a>b>c and default values a=1, b=10, c=100. I'd like to write a validator that checks...