You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RStudio's IDE does not allow embedding of iframe elements which include content from "external" URLs, as noted in rstudio/rstudioapi#2.
The way that dash-renderer currently handles stack traces places them into an iframe so that Werkzeug's CSS doesn't affect the display of the rest of the page:
We can preserve the existing behaviour in the renderer for Python apps by implementing a condition which checks whether the content of the stack trace begins with <!DOCTYPE HTML>, then enclose in an iframe if true.
Dash for R would then be modified to send back a stack trace that is raw text, which the renderer will insert directly within <pre> tags (since the above condition would be false), and this should enable support for stack trace display in the RStudio viewer as well as standalone browsers.
RStudio's IDE does not allow embedding of
iframe
elements which include content from "external" URLs, as noted in rstudio/rstudioapi#2.The way that dash-renderer currently handles stack traces places them into an
iframe
so that Werkzeug's CSS doesn't affect the display of the rest of the page:dash/dash-renderer/src/components/error/FrontEnd/FrontEndError.react.js
Lines 111 to 143 in b3b9de9
This has the unfortunate consequence of showing no stack trace within RStudio, though it appears properly in standalone browsers:
The
plot_ly
function gets around this problem by embedding source fromlocalhost
, which is allowed:We can preserve the existing behaviour in the renderer for Python apps by implementing a condition which checks whether the content of the stack trace begins with
<!DOCTYPE HTML>
, then enclose in aniframe
iftrue
.Dash for R would then be modified to send back a stack trace that is raw text, which the renderer will insert directly within
<pre>
tags (since the above condition would befalse
), and this should enable support for stack trace display in the RStudio viewer as well as standalone browsers.@alexcjohnson
The text was updated successfully, but these errors were encountered: