Skip to content

Commit

Permalink
Added console log message to warn about HTML export hack
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 17, 2018
1 parent de1f0dc commit f97769f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions holoviews/plotting/renderer.py
Expand Up @@ -72,6 +72,7 @@
embed_js = """
// Sorry for this hack! See #2574 if you want to be sad
if (!(document.getElementById('{plot_id}')) && !(document.getElementById('_anim_img{widget_id}'))) {{
console.log("Creating DOM nodes dynamically for assumed nbconvert export. To generate clean HTML output set HV_DOC_HTML=true as an environment variable.")
var htmlObject = document.createElement('div');
htmlObject.innerHTML = `{html}`;
var scriptTags = document.getElementsByTagName('script');
Expand Down

0 comments on commit f97769f

Please sign in to comment.