Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6e7faf

Browse files
committed
added config - fixed offline
1 parent 153f65b commit c6e7faf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

plotly/offline/offline.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,12 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
309309
if not tools._ipython_imported:
310310
raise ImportError('`iplot` can only run inside an IPython Notebook.')
311311

312+
config = {}
313+
config['showLink'] = show_link
314+
config['linkText'] = link_text
315+
312316
plot_html, plotdivid, width, height = _plot_html(
313-
figure_or_data, {}, validate, '100%', 525, True
317+
figure_or_data, config, validate, '100%', 525, True
314318
)
315319

316320
display(HTML(plot_html))
@@ -407,6 +411,10 @@ def plot(figure_or_data,
407411
"Adding .html to the end of your file.")
408412
filename += '.html'
409413

414+
config = {}
415+
config['showLink'] = show_link
416+
config['linkText'] = link_text
417+
410418
plot_html, plotdivid, width, height = _plot_html(
411419
figure_or_data, config, validate,
412420
'100%', '100%', global_requirejs=False)

0 commit comments

Comments
 (0)