-
Notifications
You must be signed in to change notification settings - Fork 362
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
Allow passing in traitlets via commandline #1123
Conversation
Without this, you *always* needed a repo2docker_config.py file to configure anything. This PR makes r2d match the behavior of most traitlets based applications (like jupyter_server, jupyterhub, nbconvert, etc) Fixes jupyterhub#1112
Do you know how to get the
|
@manics so we're mixing argparse and traitlets here, which is causing some of these issues. Ideally we would just be using traitlets and this will go away... I'm not entirely sure how to get |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@minrk Do you know of an easy fix? If not let's merge!
a bit funky, since we are combining two separate parsers
I added It does get a little funky, since there are two full argparse CLI instances running now (the one generated by traitlets, and our handcrafted one). I think if we want to have full traitlets CLI parsing, perhaps we should use traitlets CLI parsing. I understand not wanting to do that (it's simpler and nicer to write your own parser), but if we want the |
CI failure is unrelated
Also occurred on |
@minrk agree going all inn is probably a good idea. Do you want me to do that to move this PR forward? Or can / should it be deferred? |
It's fine to defer it. The biggest downside right now is that the
The test failure is a metadata bug in terminado 0.13. Should be fixed by jupyter/terminado#140 once 0.13.0 is yanked. |
Green! 🚀 Thanks all! |
Follow-up issue here: #1129 |
Without this, you always needed a repo2docker_config.py
file to configure anything. This PR makes r2d match the
behavior of most traitlets based applications (like jupyter_server,
jupyterhub, nbconvert, etc)
Fixes #1112