question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider moving away from using Traitlets for buildpacks

See original GitHub issue

Currently, we use traitlets heavily for constructing our buildpacks. This has become somewhat cumbersome and awkward to reason about now. Most of our code uses @default and sortof makes the traitlets behave like methods. The ordering of composition is not entirely clear either…

We should perhaps just move to using normal classes + functions, with perhaps mixin styles if needed.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
betatimcommented, Jan 12, 2018

Sounds like there is consensus to move away from traitlets. I for one welcome our new @property overlords 😃 -> I think properties are a good fit as well as your suggestion of functions/classes.

0reactions
yuvipandacommented, Feb 8, 2018

TRAITLETS ARE DEAD LONG LIVE TRAITLETS etc

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Traitlets — traitlets 5.7.1 documentation - Read the Docs
In short, traitlets let the user define classes that have. Attributes (traits) with type checking and dynamically computed default values.
Read more >
Attribute Error after installing v1.16.0 because pip is not ...
I pip installed the latest numpy and get the below error. The error goes away if I roll back to v1.15.4. The most...
Read more >
Specify launch process
Build a multi-process app. For this example we will use the hello-processes buildpack from our samples repo so make sure you have it...
Read more >
Team Compass
Suggestion to move to a traitlets-based config, but would mean everyone using old config would need to rewrite config. – Erik: If we...
Read more >
Proceedings of the 17th Python in Science Conference
When considering the future of JupyterHub in higher data ... studies tend to focus on tasks other than HAR, leaving the ... URL:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found