Yesha Vora created ZEPPELIN-1132:
------------------------------------
Summary: python interpreter should handle raw_input correctly
Key: ZEPPELIN-1132
URL: https://issues.apache.org/jira/browse/ZEPPELIN-1132
Project: Zeppelin
Issue Type: Bug
Components: zeppelin-interpreter
Affects Versions: 0.6.0
Reporter: Yesha Vora
python interpreter should handle raw_input correctly
{code}
%python
name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
{code}
raw_input is used to get input from user at execution time. If same commands
are executed in python shell directly, it gets input from user.
But Zeppelin interpreter can not get input from user. It stops execution at
row_input.
{code}
root@xxxx:~# python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> name = raw_input('What is your name?\n')
What is your name?
yesha
>>> print 'Hi, %s.' % name
Hi, yesha.
>>> {code}
Zeppelin should either show a valid error message (such as raw_input not
supported) or should be able to accept user input at runtime.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)