Skip to content

Commit 3e171e6

Browse files
committed
fixing config bug in plotly#589
1 parent b3c1d1e commit 3e171e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: plotly/offline/offline.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,9 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
308308
if not tools._ipython_imported:
309309
raise ImportError('`iplot` can only run inside an IPython Notebook.')
310310

311+
config = {'showLink': show_link, 'linkText': link_text}
311312
plot_html, plotdivid, width, height = _plot_html(
312-
figure_or_data, show_link, link_text, validate,
313+
figure_or_data, config, validate,
313314
'100%', 525, global_requirejs=True)
314315

315316
display(HTML(plot_html))
@@ -406,8 +407,9 @@ def plot(figure_or_data,
406407
"Adding .html to the end of your file.")
407408
filename += '.html'
408409

410+
config = {'showLink': show_link, 'linkText': link_text}
409411
plot_html, plotdivid, width, height = _plot_html(
410-
figure_or_data, show_link, link_text, validate,
412+
figure_or_data, config, validate,
411413
'100%', '100%', global_requirejs=False)
412414

413415
resize_script = ''

0 commit comments

Comments
 (0)