Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-2132

PySpark: Printing javascript via %htm executes Javascript twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.7.0
    • None
    • front-end, GUI
    • None

    Description

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

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

      Javascript Console in browser:

      (2) test
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bwalter42 Bernhard Walter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: