@@ -211,6 +211,12 @@ def _plot_html(figure_or_data, config, validate, default_width,
211
211
212
212
jconfig = json .dumps (config_clean )
213
213
214
+ #config = {}
215
+ #config['showLink'] = show_link
216
+ #config['linkText'] = link_text
217
+ #jconfig = json.dumps(config)
218
+ #print jconfig
219
+
214
220
# TODO: The get_config 'source of truth' should
215
221
# really be somewhere other than plotly.plotly
216
222
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',
308
314
if not tools ._ipython_imported :
309
315
raise ImportError ('`iplot` can only run inside an IPython Notebook.' )
310
316
317
+ #plot_html, plotdivid, width, height = _plot_html(
318
+ # figure_or_data, show_link, link_text, validate,
319
+ # '100%', 525, global_requirejs=True)
320
+
311
321
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 )
314
330
315
331
display (HTML (plot_html ))
316
332
0 commit comments