Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-1132

python interpreter should handle raw_input correctly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.6.0
    • None
    • python-interpreter
    • None

    Description

      python interpreter should handle raw_input correctly

      %python
      name = raw_input('What is your name?\n')
      print 'Hi, %s.' % name
      

      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.

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

      Zeppelin should either show a valid error message (such as raw_input not supported) or should be able to accept user input at runtime.

      Attachments

        Activity

          People

            bzz Alexander Bezzubov
            yeshavora Yesha Vora
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: