Skip to content
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

Updated SageMaker examples to take a region arg; added doc comments. #524

Merged
merged 3 commits into from
Jun 22, 2021

Conversation

Doug-AWS
Copy link
Contributor

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.

Comment on lines 64 to 71
let deets = format!(
"{}\t{}\t{}\t{:#?}",
name,
creation_time.format("%Y-%m-%d@%H:%M:%S"),
duration.num_seconds(),
status
);
println!("{}", deets);
Copy link
Collaborator

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,
    ...
);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, thanks.

Comment on lines 59 to 63
let details = format!(
"Notebook Name : {}, Notebook Status : {:#?}, Notebook Instance Type : {:#?}",
n_name, n_status, n_instance_type
);
println!("{}", details);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@rcoh rcoh enabled auto-merge (squash) June 22, 2021 18:12
@rcoh rcoh merged commit ffd57c9 into main Jun 22, 2021
@rcoh rcoh deleted the doug-sagemaker-examples branch June 22, 2021 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants