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

Text statements before %html or %angular magics in a paragraph won't display in output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.2
    • 0.7.0
    • Interpreters
    • None

    Description

      Print statements (or statements which automatically print like variable assignment statements in scala-based interpreters like %spark) will not be displayed in the paragraph output if they are followed by a print statement which changes the type from text (eg, %html or %angular). For example,

      %spark
      val a = 1
      println("%html")
      

      does not display anything. If I instead call println("%html") before the variable assignment, then output will be displayed. It would thus be good if the magics could retroactively change the result types of preceding statements so that they are displayed properly. This is especially important for the upcoming matplotlib integration features in the python-based interpreters since there is a post-execute hook which always sets the output to HTML or ANGULAR when any figures are open.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              agoodman Alex Goodman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: