-
Notifications
You must be signed in to change notification settings - Fork 633
embed_notebook() no longer working #1138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Specifically, |
looks like
|
Try printing the plotly object instead of using docker run -p 8888:8888 cpsievert/r-notebook-plotly ipython notebook PS. |
Yeah, I think there is some confusion about when/where to use Currently, |
Hi, sorry, I meant to reply back to this thread earlier. Yes, the problem is specific to Edge/IE and Chrome. With Edge, the problem seems to be that Edge/IE simply don't support data URIs for security reasons. Unfortunately, I'm unclear why this stopped working in Chrome recently. It still works with Firefox and Safari, though. cpsievert, printing a plotly object still works in Chrome. Unfortunately, having plotly objects outside of an iframe creates problems when converting a jupyter notebook to html. So far, I have been saving plotly objects as separate html files, then embedding them inside of iframes. This is probably what I should have been doing anyway, since most browsers put limits on data URIs. I realize that my problem is very niche, since not many people use jupyter to blog. However, the plotly documentation could be more detailed with respect to plotly and jupyter. bcdunbar, thank you for your help. I will try downgrading my version of plotly later today, and report if your solution works. |
Just an update from my end, embed notebook doesn't work on chrome v63 but does work on firefox v58. I am using 4.7.1.9000 and specifically trying to export HTML from the R kernel. Although it does work, it is extremely memory intensive for some reason.
That plot seems to be using 3gb of my memory. |
@knowitallism @dchen71 could you report your version of pandoc (if you upgrade to pandoc >2.0 it may fix your issues)? |
I think these issues have been mostly resolved in recent versions of Jupyter. And note that using |
I have been using the embed_notebook() function to embed plotly graphs into my Jupyter notebooks. Today I noticed that the embed_notebook function only returns white space. However, I can still graph the plotly object outside of the embed_notebook function.
If anyone could either help me fix this problem or give me an alternative for embedding plotly objects in Jupyter notebooks, I would greatly appreciate it.
The text was updated successfully, but these errors were encountered: