Skip to content

Commit 60ecd70

Browse files
committed
dont overwrite PLOTLYENV if it already exists
1 parent 21043cf commit 60ecd70

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

plotly/offline/offline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly'):
155155

156156
display(HTML(
157157
'<script type="text/javascript">'
158-
'window.PLOTLYENV={"BASE_URL": "' + plotly_platform_url + '"};'
158+
'window.PLOTLYENV=window.PLOTLYENV || {};'
159+
'window.PLOTLYENV.BASE_URL="' + plotly_platform_url + '";'
159160
'Plotly.LINKTEXT = "' + link_text + '";'
160161
'</script>'
161162
))

plotly/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.7.4'
1+
__version__ = '1.7.5'

0 commit comments

Comments
 (0)