GitHub user Leemoonsoo opened a pull request:
https://github.com/apache/zeppelin/pull/2829
[ZEPPELIN-3284] z.getInterpreterContext().out().clear() broken in Python
interpreter
### What is this PR for?
```
%python
import time
print("Hello")
time.sleep(0.5) # in case of Ipython kernel, print may not immediately
flushed and cleared.
z.getInterpreterContext().out().clear()
print("world")
```
Expected to print `world` only.
This worked in zeppelin-0.7.x and it'll be nice keep this feature in the
future version.
### What type of PR is it?
Bug fix | Improvement
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-3284
### How should this be tested?
* First time? Setup Travis CI as described on
https://zeppelin.apache.org/contribution/contributions.html#continuous-integration
* Strongly recommended: add automated unit tests for any new or changed
behavior
* Outline any manual steps to test the PR here.
### Screenshots (if appropriate)
### Questions:
* Does the licenses files need update?
* Is there breaking changes for older versions?
* Does this needs documentation?
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Leemoonsoo/zeppelin ZEPPELIN-3284
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/2829.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 #2829
----
commit 224a2df8e64d203a5270f1948e013c14f78b52cb
Author: Lee moon soo <moon@...>
Date: 2018-03-03T00:50:22Z
make z.getInterpreterContext().out().clear() work in PythonInterpreter
commit e0dcda61fa55d794b8de2f74a61454b46506f5ed
Author: Lee moon soo <moon@...>
Date: 2018-03-03T01:42:41Z
make z.getInterpreterContext().out().clear() work in IPythonInterprete
----
---