diff --git a/altair/utils/html.py b/altair/utils/html.py index 07d59fd24..a7a29fc74 100644 --- a/altair/utils/html.py +++ b/altair/utils/html.py @@ -10,8 +10,14 @@
{%- endif %} {%- if not requirejs %} @@ -60,7 +66,7 @@ var embedOpt = {{ embed_options }}; function showError(el, error){ - el.innerHTML = ('JavaScript Error: ' + error.message + '
' + "This usually means there's a typo in your chart specification. " + "See the javascript console for the full traceback.
" @@ -83,6 +89,17 @@ HTML_TEMPLATE_UNIVERSAL = jinja2.Template( """ +