GitHub user Leemoonsoo opened a pull request:

    https://github.com/apache/zeppelin/pull/1658

    [WIP] [ZEPPELIN-212] Multiple paragraph results

    ### What is this PR for?
    Currently a paragraph can display only a single type of result.
    For example
    ```
    print("""
    %text textout
    %html htmlout
    """)
    ```
    
    will display only last display system detected, "htmlout".
    
    This pr implements multiple results supports, so not only the last, but 
also all the display systems in a paragraph outputs can be displayed.
    
    To do that, Note.json format need to be changed. from
    
    ```
       paragraph : [
          {
              result : {
                  code: "",
                  type: "",
                  msg: ""            
              },
              config : {
                 graph : {},
                 ...
              },
              ...
          },
          ...
       ],
       ...
    ```
    
    to
    
    ```
       paragraph : [
          {
              result : {
                 {
                    code: "",
                    msg: [
                       {
                            type: "",
                            data: ""
                        },
                        {
                            type: "",
                            data: ""
                         }
                    ]
              },
              config : {
                 result : [
                    {
                        graph : {},
                    },
                    {
                        graph : {},
                    },
                    ...
                 ]
              },
              ...
          },
          ...
       ],
       ...
    ```
    
    
    
    
    
    ### What type of PR is it?
    Improvement
    
    ### Todos
    * [x] - Make InterpreterResult and InterpreterOutput support multiple 
display system
    * [x] - Automatic migration old format to new format
    * [ ] - Render multiple results in front-end
    * [ ] - Take care Importing old notebook format
    * [ ] - Make helium framework support multiple results
    * [ ] - Save note in old format in some notebook repo (zeppelinhubrepo)
    
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/ZEPPELIN-212
    
    ### How should this be tested?
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? no
    * Is there breaking changes for older versions? yes
    * Does this needs documentation? yes
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Leemoonsoo/zeppelin ZEPPELIN-212

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/1658.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1658
    
----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to