Skip to content

Commit 17485bc

Browse files
committed
renamed variables so tests will pass
1 parent 341e87f commit 17485bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plotly/offline/offline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def _plot_html(figure_or_data, show_link, link_text, validate,
189189

190190
def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
191191
validate=True, download_image=False, format='png',
192-
width=800, height=600, filename='newplot'):
192+
_width=800, _height=600, filename='newplot'):
193193
"""
194194
Draw plotly graphs inside an IPython notebook without
195195
connecting to an external server.
@@ -232,7 +232,7 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
232232
if not tools._ipython_imported:
233233
raise ImportError('`iplot` can only run inside an IPython Notebook.')
234234

235-
plot_html, plotdivid, _width, _height, plot_id = _plot_html(
235+
plot_html, plotdivid, width, height, plot_id = _plot_html(
236236
figure_or_data, show_link, link_text, validate,
237237
'100%', 525, global_requirejs=True, download=download_image)
238238

@@ -245,7 +245,7 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
245245
'setTimeout(function() {{Plotly.downloadImage(div_id, {{format: \'{format}\', '
246246
'height: {height}, width: {width}, filename: \'{filename}\'}});}}, 500);'
247247
'</script>'
248-
).format(format=format, width=width, height=height,
248+
).format(format=format, width=_width, height=_height,
249249
filename=filename, plot_id=plot_id)
250250

251251
display(HTML(script))

0 commit comments

Comments
 (0)