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

# Problem All CI jobs will probably fail right now if using `pip` 22.1 with the tell-tale error of: ``` pip._vendor.packaging.markers.UndefinedEnvironmentName: 'extra' does not exist in evaluation environment. ``` ##...

Hi there! We noticed that 5.2.1 had some issue related to the _version module. I see you have released 5.2.1.post0. Thank you! Could you also yank 5.2.1 from PyPI to...

```console $ PYTHONPATH=$PWD sphinx-build -b man -d traitlets docs/source . Running Sphinx v3.5.4 Initializing GitHub plugin loading intersphinx inventory from https://docs.python.org/objects.inv... intersphinx inventory has moved: https://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv building [mo]:...

sprint-friendly
good first issue

[`extra_args`](https://github.com/ipython/traitlets/blob/34f596dd03b98434900a7d31c912fc168342bb80/traitlets/config/application.py#L280) apparently has something to do with "extra command-line arguments that don't set config values" but nowhere is this functionality documented. I noticed it in a [towards data science article](https://towardsdatascience.com/tutorial-create-a-python-cli-package-a2410b47af35)....

In the [sample application on line 55](https://github.com/ipython/traitlets/blob/main/examples/myapp.py#L55) we see: classes = List([Bar, Foo]) but to learn what classes is we must read [this comment in the code](https://github.com/ipython/traitlets/blob/main/traitlets/config/application.py#L161): ``` # A...

In [the docs](https://traitlets.readthedocs.io/en/stable/config.html#python-configuration-files) we read; > After this configuration file is loaded, but 1. it is not clear how a configuration file for a Configurable instance is loaded... does it...

The [overview Docs for the `Application` class](https://traitlets.readthedocs.io/en/stable/config.html#the-main-concepts) has a number of statements that I find do not lead to complete understanding: > An application is a process that does a...

If one wants to have a boolean attribute of a Configurable/Application set via a flag, there is [quite a bit of configuration to do](https://towardsdatascience.com/tutorial-create-a-python-cli-package-a2410b47af35). Unfortunately, this configuration is not well-documented...

To make a required trait, I thought I could use: ``` from traitlets import HasTraits, Unicode class Foo(HasTraits): bar = Unicode(default_value=None, allow_none=False, required=True) ``` As expected, this raises a trait...

I have a frequent pattern that comes up time and again with my jupyter widgets (depends on traitlets) and think it would be helpful to have this supported in the...