Skip to content

Commit 080ee0e

Browse files
committed
sub in new embed signature in get_embed()
1 parent ea84183 commit 080ee0e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plotly/tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ def get_embed(file_owner_or_url, file_id=None, width="100%", height=525):
248248
s = ("<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\""
249249
"seamless=\"seamless\" "
250250
"src=\"{plotly_rest_url}/"
251-
"~{file_owner}/{file_id}/{plot_width}/{plot_height}\" "
251+
"~{file_owner}/{file_id}.embed"
252+
"?width={plot_width}&height={plot_height}\" "
252253
"height=\"{iframe_height}\" width=\"{iframe_width}\">"
253254
"</iframe>").format(
254255
plotly_rest_url=plotly_rest_url,
@@ -259,7 +260,7 @@ def get_embed(file_owner_or_url, file_id=None, width="100%", height=525):
259260
s = ("<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\""
260261
"seamless=\"seamless\" "
261262
"src=\"{plotly_rest_url}/"
262-
"~{file_owner}/{file_id}\" "
263+
"~{file_owner}/{file_id}.embed\" "
263264
"height=\"{iframe_height}\" width=\"{iframe_width}\">"
264265
"</iframe>").format(
265266
plotly_rest_url=plotly_rest_url,

0 commit comments

Comments
 (0)