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

I'm trying to modify the logging of errors performed by [`catch_config_error()` decorator](https://github.com/ipython/traitlets/blob/master/traitlets/config/application.py#L78-L94). I'm trying to monkey-patch it, but obviously the classes that using it, defined in `application` module, are already...

Please note that I have only used `traitlets` as a part of `ipywidgets`, and not sure how feasible are the suggestions below for its other uses - but for widgets...

A notification which catches a `"change"` should also intuitively catch a `"special change"`. I see two ways to accomplish this kind of behavior: 1. Split type strings at each `"...

I put these lines at the top of a python config file: from traitlets.config import get_config c = get_config() I did this so my editor would stop bugging me about...

Because the class is a LoggingConfigurable. And the logic for that seem to be on Application (subclass of LoggingConfigurable) instead of `LoggingConfigurable`. So logging configurable can do logging, but is...

Or cast it immediately to `type_`, as delete it, or it shadows the `type` builtin which is kind of useful.

I can't seem to set `default_value` of `List` trait to be `None`. When I try to set it the using the `default_value` argument in the constructor, the value is set...

Or at least gracefully warn if missing, but still work ? Better than "Undefined variable `Foo`" maybe That would require changing the `__main__` namespace and overwrite `__setattr__` to accept anything...

enhancement
question
needs-info

Currently (v5.0.0.dev) `launch_instance()` method invokes `start()` without returning its value: def launch_instance(cls, argv=None, **kwargs): app = cls.instance(**kwargs) app.initialize(argv) app.start() But the `start()` method by default returns the value from any...

I think that it would be interesting to push upstream the abiility that was added in jupyter-incubator's traittypes: registration of custom validators (non-cross) with a chaining `valid` method. ``` python...