You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "Bernhard Walter (JIRA)" <ji...@apache.org> on 2017/02/17 15:34:41 UTC

[jira] [Created] (ZEPPELIN-2132) PySpark: Printing javascript via %htm executes Javascript twice

Bernhard Walter created ZEPPELIN-2132:
-----------------------------------------

             Summary: PySpark: Printing javascript via %htm executes Javascript twice
                 Key: ZEPPELIN-2132
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-2132
             Project: Zeppelin
          Issue Type: Bug
          Components: front-end, GUI
    Affects Versions: 0.7.0
            Reporter: Bernhard Walter


If you use %html to print javascript (e.g. in order to embed visualisation library output from Bokeh), the javascript gets executed twice:

{code}
%pyspark

print("%html")
print("""
<script>
  console.log('test');
</script>
""")
{code}

Javascript Console in browser:
{code}
(2) test
{code}

with (2) being the badge in the console that flags the number of same outputs.

This sometimes leads to strange behaviour if a library assumes the conde runs exactly once.





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)