Skip to content

Commit cf90fba

Browse files
committed
renamed calls to get_image_download_script and fixed docstring
1 parent 8689112 commit cf90fba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plotly/offline/offline.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ def get_plotlyjs():
5050
return plotlyjs
5151

5252
def get_image_download_script(caller):
53-
'''
53+
"""
5454
This function will return a script that will download an image of a Plotly
5555
plot.
5656
5757
Keyword Arguments:
5858
caller ('plot', 'iplot') -- specifies which function made the call for the
5959
download script. If `iplot`, then an extra condition is added into the
60-
download script to ensure that download prompts aren't iniitated on
60+
download script to ensure that download prompts aren't initiated on
6161
page reloads.
62-
'''
62+
"""
6363

6464
if caller == 'iplot':
6565
check_start = 'if(document.readyState == \'complete\') {{'
@@ -303,7 +303,7 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
303303
)
304304
)
305305
# if image is given, and is a valid format, we will download the image
306-
script = image_download_script('iplot').format(format=image,
306+
script = get_image_download_script('iplot').format(format=image,
307307
width=image_width,
308308
height=image_height,
309309
filename=filename,
@@ -426,7 +426,7 @@ def plot(figure_or_data,
426426
)
427427
# if the check passes then download script is injected.
428428
# write the download script:
429-
script = image_download_script('plot')
429+
script = get_image_download_script('plot')
430430
script = script.format(format=image,
431431
width=image_width,
432432
height=image_height,

0 commit comments

Comments
 (0)