Skip to content

Commit 5840914

Browse files
committed
might as well add the rest of the plot_options
now that the `_plot_option_option` logic is nice n generic, let's add some more options.
1 parent 93d7262 commit 5840914

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

plotly/files.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
'plotly_api_domain': 'https://api.plot.ly',
2020
'plotly_ssl_verification': True,
2121
'plotly_proxy_authorization': False,
22-
'world_readable': True}}
22+
'world_readable': True,
23+
'sharing': "public",
24+
"auto_open": True}}
2325

2426
try:
2527
os.mkdir(TEST_DIR)

plotly/plotly/plotly.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
DEFAULT_PLOT_OPTIONS = {
4040
'filename': "plot from API",
4141
'fileopt': "new",
42-
'auto_open': True,
4342
'world_readable': files.FILE_CONTENT[files.CONFIG_FILE]['world_readable'],
43+
'auto_open': files.FILE_CONTENT[files.CONFIG_FILE]['auto_open'],
4444
'validate': True,
45-
'sharing': "public"
45+
'sharing': files.FILE_CONTENT[files.CONFIG_FILE]['sharing']
4646
}
4747

4848
# test file permissions and make sure nothing is corrupted

0 commit comments

Comments
 (0)