ipython/ipython — pull request #1288 by takluyver (2012-01-18 21:10:01+00:00)
Title: Don't ask for confirmation when stdin isn't available

In the notebook, we can't ask the user to confirm actions with a y/n prompt, because stdin doesn't work. But they probably didn't type %reset by accident, so we may as well go ahead and do it.

Points to consider:

- If the user types "exit", we don't wait for confirmation. reset is no more damaging than exit, so maybe we shouldn't wait for confirmation at all.
- Is there any situation where the user might expect to have a `reset` variable in scope, and try to examine its value? One way round this would be to drop reset in the builtins (as an explanatory string), forcing them to explicitly type %reset. But I suspect this is overkill.

Closes gh-1268