5

whenever trying to input values from keyboard using ipython notebook using the input() function like python, it gives error.

EOFError                                  Traceback (most recent call last)
<ipython-input-1-725a22d6f154> in <module>()
     8 #Reads three Input values for x,y and z
     9 print "Enter Values of x, y, z :- "
---> 10 x = input()
     11 y = input()
     12 z = input()

EOFError: EOF when reading a line

the same works correctly in python. how can I do this in ipython notebook environment?

thanks in advance.

1 Answer 1

4

Use raw_input. (and some more chars so the SO allow me to post the answer)

Sign up to request clarification or add additional context in comments.

4 Comments

@reshmig whats the error? I've used raw_input as well and it works great.
it is not asking for the input values and shows the error EOFError
while using raw_input() function, it shows the error that this frontend does not support stdin.
only 1.0 support it in the notebook.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.