-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
55 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
|
||
def lazy_sagemaker(): | ||
try: | ||
import sagemaker as sage # type: ignore | ||
return sage | ||
except ImportError: | ||
raise ImportError("Sagemaker not available. Please install sagemaker.") | ||
|
||
def lazy_boto3(): | ||
try: | ||
import boto3 # type: ignore | ||
return boto3 | ||
except ImportError: | ||
raise ImportError("Boto3 not available. Please install lazy_boto3().") | ||
|
||
def lazy_botocore(): | ||
try: | ||
import botocore # type: ignore | ||
return botocore | ||
except ImportError: | ||
raise ImportError("Botocore not available. Please install botocore.") | ||
|