Skip to content

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
Contributor

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
Contributor

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