Я запускаю свою программу на ноутбуке Jupyter
%%file ex14.py
from sys import argv
script, user_name = argv
prompt = '> '
print ("Hi %s, I'm the %s script." % (user_name, script))
print ("I'd like to ask you a few questions.")
print ("Do you like me %s?" % user_name)
likes = (input(prompt))
print ("Where do you live %s?" % user_name)
lives = input(prompt)
print ("What kind of computer do you have?")
computer = input(prompt)
В следующей ячейке
%%!
python ex14.py argument
После того, как эта программа не запрашивает пользовательский ввод. Любое руководство?
The same program is executing fine in terminal
Полная ошибка отображается в Jupyter
`["Hi argument, I'm the ex14.py script.",
"I'd like to ask you a few questions.",
'Do you like me argument?',
'> Traceback (most recent call last):',
' File "ex15.py", line 7, in <module>',
' likes = (input(prompt))',
'EOFError: EOF when reading a line']`