Skip to content

No '.embed' extension for Jupyter embedded pages#613

Merged
cpsievert merged 1 commit into
plotly:masterfrom
Nikolai-Hlubek:master
May 31, 2016
Merged

No '.embed' extension for Jupyter embedded pages#613
cpsievert merged 1 commit into
plotly:masterfrom
Nikolai-Hlubek:master

Conversation

@Nikolai-Hlubek
Copy link
Copy Markdown
Contributor

The fix for #581 by adding '.embed' to plotly_iframe breaks compatibility with Jupyter.

The '.embed' extension is not added in all necessary places: New files are saved without the extension, and than they can't be loaded, because the iframe expects the extension.

However fixing this would still not work with Jupyter, as Jupyter does not render files with the extension '.embed'. It only renders if the extension is html otherwise it shows the contents as text.

This commit is a possible suggestion that allows fix #581 to remain valid and saves graphs for Jupyter without '.embed' extension.

@cpsievert cpsievert merged commit 581f07e into plotly:master May 31, 2016
@cpsievert
Copy link
Copy Markdown
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plotly_POST not embedding plot as expected

2 participants