File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 53
53
54
54
55
55
def sign_in (username , api_key , ** kwargs ):
56
- """Set module-scoped _credentials for session. Verify with plotly."""
57
- global _credentials
56
+ """Set module-scoped _credentials for session. Optionally, set config info.
57
+ """
58
58
_credentials ['username' ], _credentials ['api_key' ] = username , api_key
59
59
# TODO: verify these _credentials with plotly
60
60
61
- global _config
62
61
_config ['plotly_domain' ] = kwargs .get ('plotly_domain' )
63
62
_config ['plotly_streaming_domain' ] = kwargs .get ('plotly_streaming_domain' )
63
+ # TODO: verify format of config options
64
64
65
65
66
66
### plot options stuff ###
67
67
68
68
def update_plot_options (** kwargs ):
69
69
""" Update the module-level _plot_options
70
70
"""
71
- global _plot_options
72
71
_plot_options .update (kwargs )
73
72
74
73
75
74
def get_plot_options ():
76
75
""" Returns a copy of the user supplied plot options.
77
76
Use `update_plot_options()` to change.
78
77
"""
79
- global _plot_options
80
78
return copy .copy (_plot_options )
81
79
82
80
You can’t perform that action at this time.
0 commit comments