-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Updated SageMaker examples to take a region arg; added doc comments. #524
Conversation
let deets = format!( | ||
"{}\t{}\t{}\t{:#?}", | ||
name, | ||
creation_time.format("%Y-%m-%d@%H:%M:%S"), | ||
duration.num_seconds(), | ||
status | ||
); | ||
println!("{}", deets); |
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.
You can combine these two lines:
println!(
"{}\t{}\t{}\t{:#?}",
name,
...
);
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.
Updated, thanks.
let details = format!( | ||
"Notebook Name : {}, Notebook Status : {:#?}, Notebook Instance Type : {:#?}", | ||
n_name, n_status, n_instance_type | ||
); | ||
println!("{}", details); |
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.
Likewise here
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.
Done.
Issue #, if available:
SageMaker code examples had no doc comments.
Description of changes:
Added them and an optional command-line region arg (-d DEFAULT-REGION).
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.