-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix common_traits calculation #45
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
It looks like you are only interested in the trait names, so maybe the
|
Thanks @minrk, right, what
Since we're not doing any metadata filtering on the traits I think this would turn into basically the same answer as It's been a while but maybe @cmd-ntrf has a reason he was trying to use |
Gives identical answers for |
I've taken off the WIP: prefix and retitled the PR. I think this is worth considering for merge at this point. |
No specific reason on my part, I probably found out about the existence of |
ex post facto justification: |
I was encountering #41 also after upgrading the environment we use to provide the jupyterhub service. It took a while to find out that, due to the update of the traitlets package, the |
Can this be released as a new version? It fixed my problem with batchspawner/profilesspawner on SLURM which must have been caused by the upgrade to traitlets version 5, and I'd rather not have to specifically install from Git in my build template. |
same here, just ran into this problem today and it cost a lot of time :/ ... releasing a 1.0.1 seems justified to me |
With traitlets 5, a
trait_values()
method was added toHasTraits
that seems like a better fit here. Indeed it seems to resolve problems like #41 and others.Without this change, but with traitlets 5 installed, a number of traits in
self.child_spawner._trait_values.keys()
are omitted relative to with traitlets 4. Switching this toself.child_spawner.trait_values().keys()
returns more of these but other ones as well. This may be the consequence of some kind of effective**metadata
argument "applied" in traitlets 4, I haven't looked.I've marked this WIP because while it appears to fix the reproducer in #41, there may be other consequences and I'd like to try it out on my dev deployment before asking for a merge. I would also encourage others who have seen traitlets 5 break their JupyterHub+wrapspawner deployments to try this out and report back.