We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42cc384 commit af05d1bCopy full SHA for af05d1b
plotly/plotly/plotly.py
@@ -81,13 +81,12 @@ def get_plot_options():
81
82
83
def get_credentials():
84
- """ Returns a copy of the user supplied credentials.
85
- """
86
- global _credentials
87
- if ('username' in _credentials) and ('api_key' in _credentials):
88
- return copy.copy(_credentials)
89
- else:
90
- return tools.get_credentials_file()
+ """Returns the credentials that will be sent to plotly."""
+ credentials = tools.get_credentials_file()
+ for credentials_key in credentials:
+ if _credentials.get(credentials_key):
+ credentials[credentials_key] = _credentials[credentials_key]
+ return credentials
91
92
93
### plot stuff ###
0 commit comments