Skip to content

Commit 9eefc35

Browse files
Update offline.py
1 parent 0da43d2 commit 9eefc35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/python/plotly/plotly/offline/offline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
__IMAGE_FORMATS = ["jpeg", "png", "webp", "svg"]
20-
20+
__NAME_JS="plotly2.min.js"
2121

2222
def download_plotlyjs(download_url):
2323
warnings.warn(
@@ -86,7 +86,7 @@ def get_plotlyjs():
8686
>>> with open('multi_plot.html', 'w') as f:
8787
... f.write(html)
8888
"""
89-
path = os.path.join("package_data", "plotly.min.js")
89+
path = os.path.join("package_data", __NAME_JS)
9090
plotlyjs = pkgutil.get_data("plotly", path).decode("utf-8")
9191
return plotlyjs
9292

0 commit comments

Comments
 (0)