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 2fa2cae commit e5a0493Copy full SHA for e5a0493
plotly/plotly/plotly.py
@@ -44,6 +44,8 @@
44
45
_plot_options = dict()
46
47
+_config = dict()
48
+
49
### test file permissions and make sure nothing is corrupted ###
50
tools.ensure_local_plotly_files()
51
@@ -127,6 +129,15 @@ def _plot_option_logic(plot_options):
127
129
return options
128
130
131
132
+def get_config():
133
+ """Returns either module config or file config."""
134
+ config = tools.get_config_file()
135
+ for config_key in config:
136
+ if _config.get(config_key):
137
+ config[config_key] = _config[config_key]
138
+ return config
139
140
141
def plot(figure_or_data, validate=True, **plot_options):
142
"""Create a unique url for this plot in Plotly and optionally open url.
143
0 commit comments