traitlets icon indicating copy to clipboard operation
traitlets copied to clipboard

Consider a `Path` trait; many Unicode use could be Path I think.

Open Carreau opened this issue 3 years ago • 5 comments

Carreau avatar Aug 30 '20 20:08 Carreau

Makes perfect sense

minrk avatar Sep 04 '20 06:09 minrk

Would it map onto pathlib?

vidartf avatar Sep 15 '20 10:09 vidartf

yes, those would be pathlib.Paths

Carreau avatar Sep 15 '20 17:09 Carreau

Hello @Carreau I could fix this. In the way I did it at https://github.com/ipython/ipython/pull/12650

davbrito avatar Oct 27 '20 17:10 davbrito

in case it's useful as a good (or bad) example, we defined a custom Path trait here: https://github.com/cta-observatory/ctapipe/blob/2e3a5744a1fe87f21f89571f7a05754183dc85b1/ctapipe/core/traits.py#L82

kosack avatar Nov 13 '20 17:11 kosack