Alex Goodman created ZEPPELIN-1638:
--------------------------------------

             Summary: Text statements before %html or %angular magics in a 
paragraph won't display in output
                 Key: ZEPPELIN-1638
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-1638
             Project: Zeppelin
          Issue Type: Bug
          Components: Interpreters
    Affects Versions: 0.6.2
            Reporter: Alex Goodman
             Fix For: 0.7.0


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,

{code}
%spark
val a = 1
println("%html")
{code}

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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to