@@ -211,6 +211,12 @@ def _plot_html(figure_or_data, config, validate, default_width,
211211
212212 jconfig = json .dumps (config_clean )
213213
214+ #config = {}
215+ #config['showLink'] = show_link
216+ #config['linkText'] = link_text
217+ #jconfig = json.dumps(config)
218+ #print jconfig
219+
214220 # TODO: The get_config 'source of truth' should
215221 # really be somewhere other than plotly.plotly
216222 plotly_platform_url = plotly .plotly .get_config ().get ('plotly_domain' ,
@@ -308,9 +314,19 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
308314 if not tools ._ipython_imported :
309315 raise ImportError ('`iplot` can only run inside an IPython Notebook.' )
310316
317+ #plot_html, plotdivid, width, height = _plot_html(
318+ # figure_or_data, show_link, link_text, validate,
319+ # '100%', 525, global_requirejs=True)
320+
311321 plot_html , plotdivid , width , height = _plot_html (
312- figure_or_data , show_link , link_text , validate ,
313- '100%' , 525 , global_requirejs = True )
322+ figure_or_data = figure_or_data ,
323+ config = {},
324+ #show_link,
325+ #link_text,
326+ validate = validate ,
327+ default_width = '100%' ,
328+ default_height = 525 ,
329+ global_requirejs = True )
314330
315331 display (HTML (plot_html ))
316332
0 commit comments