-
Notifications
You must be signed in to change notification settings - Fork 23
feat(notebooks): notebook environment variables PS-14130 #306
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
Conversation
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.
Add some basic test, please.
You could add this option to COMMAND_WITH_ALL_OPTIONS and just add a field to EXPECTED_REQUEST_JSON_WITH_ALL_OPTIONS
@BartoszCki tests added |
@BartoszCki I rebased on master, however now the test for loading from yaml is failing. I'm not sure why and if you have any advice I'd appreciate it. Some more detail:
|
"--environment", | ||
"environment", | ||
type=json_string, | ||
help="Environmental variables", |
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.
The "environment" variable is not loaded from yaml file because you have to use
cls=common.GradientOption,
here. Loading values happens in the GradientOption method.Eevery option has to have the cls set to GradientOption for the yaml loading to work. It's not s perfect solution as one have to remember to put it everywhere but I couldn't find any better at the time I was working on it.
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.
Ah I must have lost that in the merge. Thanks! I thought I was going nuts.
No description provided.