You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jupyter_drives/base.py
+27-42Lines changed: 27 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
importentrypoints
4
4
fromtraitletsimportEnum, Unicode, default
5
5
fromtraitlets.configimportConfigurable
6
+
importboto3
6
7
7
8
# Supported third-party services
8
9
MANAGERS= {}
@@ -42,8 +43,9 @@ class DrivesConfig(Configurable):
42
43
)
43
44
44
45
region_name=Unicode(
45
-
"eu-north-1",
46
-
config=True,
46
+
None,
47
+
config=True,
48
+
allow_none=True,
47
49
help="Region name.",
48
50
)
49
51
@@ -52,13 +54,6 @@ class DrivesConfig(Configurable):
52
54
help="Base URL of the provider service REST API.",
53
55
)
54
56
55
-
custom_credentials_path=Unicode(
56
-
None,
57
-
config=True,
58
-
allow_none=True,
59
-
help="Custom path of file where credentials are located. Extension automatically checks jupyter_notebook_config.py or directly in ~/.aws/credentials for AWS CLI users."
60
-
)
61
-
62
57
@default("api_base_url")
63
58
defset_default_api_base_url(self):
64
59
# for AWS S3 drives
@@ -80,25 +75,27 @@ def __init__(self, **kwargs):
80
75
super().__init__(**kwargs)
81
76
self._load_credentials()
82
77
83
-
def_load_credentials(self):
78
+
def_load_credentials(self):
84
79
# check if credentials were already set in jupyter_notebook_config.py
aws_credentials_path="~/.aws/credentials"#add read me about credentials path in windows: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html
0 commit comments