ipython/ipython — Issue #1268: notebook %reset magic fails with StdinNotImplementedError
Author: ivanov
Created: 2012-01-14 17:39:41+00:00
State: open

forgive me if this is a duplicate of the general issue of stdin not being implemented, but just wanted to report this bug on current git.

here's the trace:

---------------------------------------------------------------------------
StdinNotImplementedError Traceback (most recent call last)
/home/pi/code/py4science/2012-bootcamp/saturday/ in ()
----> 1 get_ipython().magic(u'reset')

/home/pi/code/py4science/scipy2010/ipython/IPython/core/interactiveshell.pyc in magic(self, arg_s, next_input)
1987 self._magic_locals = sys._getframe(1).f_locals
1988 with self.builtin_trap:
-> 1989 result = fn(magic_args)
1990 # Ensure we're not keeping object references around:

1991 self._magic_locals = {}

/home/pi/code/py4science/scipy2010/ipython/IPython/core/magic.pyc in magic_reset(self, parameter_s)
990 else:
991 ans = self.shell.ask_yes_no(
--> 992 "Once deleted, variables cannot be recovered. Proceed (y/[n])? ", default='n')
993 if not ans:
994 print 'Nothing done.'

/home/pi/code/py4science/scipy2010/ipython/IPython/core/interactiveshell.pyc in ask_yes_no(self, prompt, default)
2658 if self.quiet:
2659 return True
-> 2660 return ask_yes_no(prompt,default)
2661
2662 def show_usage(self):

/home/pi/code/py4science/scipy2010/ipython/IPython/utils/io.pyc in ask_yes_no(prompt, default)
225 while ans not in answers.keys():
226 try:
--> 227 ans = raw_input(prompt+' ').lower()
228 if not ans: # response was an empty string
229 ans = default

/home/pi/code/py4science/scipy2010/ipython/IPython/zmq/ipkernel.pyc in (prompt)
251 raw_input = lambda prompt='': self._raw_input(prompt, ident, parent)
252 else:
--> 253 raw_input = lambda prompt='' : self._no_raw_input()
254
255 if py3compat.PY3:

/home/pi/code/py4science/scipy2010/ipython/IPython/zmq/ipkernel.pyc in _no_raw_input(self)
443 """Raise StdinNotImplentedError if active frontend doesn't support
444 stdin."""
--> 445 raise StdinNotImplementedError("raw_input was called, but this "
446 "frontend does not support stdin.")
447

StdinNotImplementedError: raw_input was called, but this frontend does not support stdin.