-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ZEPPELIN-2756] Support ansi escape code for colorizing output in browser #2510
[ZEPPELIN-2756] Support ansi escape code for colorizing output in browser #2510
Conversation
AWESOME! |
CI failed, but irrelevant. The error is related with Ipython which is going on #2510
|
Great, Thanks @1ambda |
.travis.yml
Outdated
|
||
# Test spark module for 2.2.0 with scala 2.11, livy | ||
- jdk: "oraclejdk8" | ||
dist: precise | ||
env: SCALA_VER="2.11" SPARK_VER="2.2.0" HADOOP_VER="2.6" PROFILE="-Pweb-ci -Pspark-2.2 -Phadoop-2.6 -Pscala-2.11" SPARKR="true" BUILD_FLAG="package -DskipTests -DskipRat" TEST_FLAG="test -DskipRat" MODULES="-pl .,zeppelin-interpreter,zeppelin-zengine,zeppelin-server,zeppelin-display,spark-dependencies,spark,livy" TEST_PROJECTS="-Dtest=ZeppelinSparkClusterTest,org.apache.zeppelin.spark.*,org.apache.zeppelin.livy.* -DfailIfNoTests=false" | ||
env: PYTHON="2" SCALA_VER="2.11" SPARK_VER="2.2.0" HADOOP_VER="2.6" PROFILE="-Pweb-ci -Pspark-2.2 -Phadoop-2.6 -Pscala-2.11" SPARKR="true" BUILD_FLAG="install -DskipTests -DskipRat" TEST_FLAG="test -DskipRat" MODULES="-pl .,zeppelin-interpreter,zeppelin-zengine,zeppelin-server,zeppelin-display,spark-dependencies,spark,python,livy" TEST_PROJECTS="-Dtest=ZeppelinSparkClusterTest,org.apache.zeppelin.spark.*,org.apache.zeppelin.livy.* -DfailIfNoTests=false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change some of these to PYTHON="3"?
python/README.md
Outdated
|
||
# IPython Architecture | ||
Current interpreter delegate the whole work to ipython kernel via `jupyter_client`. Zeppelin would launch a python process which host the ipython kernel. | ||
Zeppelin interpreter process will communicate with the python process via `grpc`. Ideally every feature works in IPython should work in Zeppelin as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should scale back on the claim here, as commented before - not everything would work here :)
LOGGER.info("Wait for IPython Kernel to be started"); | ||
} | ||
} catch (Exception e) { | ||
// ignore the exception, because is may happen when grpc server has not started yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should still log the error/exception?
LG, I guess we go back to 2474 then |
ping @1ambda I can do the rebase if you are busy with other stuff and can merge it if you don't mind. |
@zjffdu Sorry for the late response. I can do in few hours. Thanks. |
dd97d00
to
143fbbb
Compare
rebased to resolve conflict. |
Thanks @1ambda I also tested it, it works very well. LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I assume AnsiUpConverter.ansi_to_html handles text already in html format correctly?
@felixcheung It will because It converts ANSI codes whatever the content format is. And I intentionally made a change to convert TEXT format (of Zeppelin output) only to minimize the change. // ANSI handler is in this function
const renderText = function (targetElemId, data) { |
got it, thanks! |
CI passed. Merge if no more discussion. |
What is this PR for?
Support ANSI escape code for colorizing output in browser using ansi-up
This feature is written based on #2474
What type of PR is it?
[Improvement]
What is the Jira issue?
ZEPPELIN-2756
How should this be tested?
Setup ipython interpreter (or use any interpreter can return ansi escape code)
Screenshots (if appropriate)
Before
After
Questions: