GitHub user 1ambda opened a pull request:

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

    [ZEPPELIN-2756] Support ansi escape code for colorizing output in browser

    ### What is this PR for?
    
    Support ANSI escape code for colorizing output in browser using 
[ansi-up](https://github.com/drudru/ansi_up#license)
    
    This feature is written the top of #2474 
    
    ### What type of PR is it?
    [Improvement]
    
    
    ### What is the Jira issue?
    
    [ZEPPELIN-2756](https://github.com/apache/zeppelin/pull/2474)
    
    ### How should this be tested?
    
     Setup ipython interpreter (or use any interpreter can return ansi escape 
code)
    
    ```
    %python.ipython
    
    import pandas as pd
    df = pd.DataFrame({'id':[1,2,3], 'name': ['a', 'b', 'c']})
    z.show(df)
    ```
    
    ### Screenshots (if appropriate)
    
    #### Before
    
    
![image](https://user-images.githubusercontent.com/4968473/28761648-1e2fcc6e-75eb-11e7-8fc6-bf7a07ccf23f.png)
    
    
    #### After
    
    
![image](https://user-images.githubusercontent.com/4968473/28761645-142d0074-75eb-11e7-903e-e0a79864ce80.png)
    
    ### Questions:
    * Does the licenses files need update? - YES, updated
    * Is there breaking changes for older versions? - YES, all outputs will be 
escaped 
    * Does this needs documentation? - NO


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

    $ git pull https://github.com/1ambda/zeppelin 
ZEPPELIN-2756/escape-ansi-code-in-browser

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

    https://github.com/apache/zeppelin/pull/2510.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 #2510
    
----
commit 78fde23c39a9fef36cea3d074b09a4748bdc17c9
Author: Jeff Zhang <zjf...@apache.org>
Date:   2017-07-02T07:51:14Z

    [ZEPPELIN-2753] Basic Implementation of IPython Interpreter

commit bb4d35451e3a7e83d20a2a7f66f303f2258bdd16
Author: Jeff Zhang <zjf...@apache.org>
Date:   2017-07-17T00:29:59Z

    Add cursor for completion

commit 3df231497a2b4b4bd0e3703151d25a0b0a932073
Author: Jeff Zhang <zjf...@apache.org>
Date:   2017-07-27T11:10:27Z

    use IPython first, otherwise fallback to the old PythonInterpreter

commit 6d1f69bb74639ebe7c826a2ed807acfa8b02619e
Author: Jeff Zhang <zjf...@apache.org>
Date:   2017-07-28T07:49:29Z

    IPython Support for PySparkInterpreter

commit 87690543b881a7d1558b60c452a4ee7baedc8a5e
Author: Jeff Zhang <zjf...@apache.org>
Date:   2017-07-30T09:54:23Z

    change

commit 80ecfba2c31809ffeff7fda1bc361b5f91f62018
Author: 1ambda <1am...@gmail.com>
Date:   2017-07-31T03:18:46Z

    feat: Escape ansi code

commit dd97d00b42935d4080651460ce0fd69dcd52f0e3
Author: 1ambda <1am...@gmail.com>
Date:   2017-07-31T03:20:28Z

    chore: Add license notation for ansi up

----


---
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