[IPython-dev] Qt console making great strides, please use it and let us know what works, what doesn't

Dave Hirschfeld dave.hirschfeld at gmail.com
Thu Apr 14 13:09:43 EDT 2011


Fernando Perez <fperez.net <at> gmail.com> writes:

> 
> Hi all,
> 
> now that our codebase is starting to settle down into the shape the
> next release will look like, it would be great if we start getting
> more feedback.  In particular, Evan Patterson has done a great job of
> fine-tuning the Qt console so that it's a really useful tool for
> everyday work, and while we've tried to be much more disciplined about
> testing things now, the reality of GUI apps is that some things are
> very difficult to test short of humans using them.
> 
> So if you would like to start using it, and reporting what doesn't
> work either here or even better, on the bug tracker, that would be
> great.  
>
> Cheers,
> 
> f
> 

I saw issues #318 & #319, but I'm not sure this is the same thing. It appears
the %debug doesn't work in the qt-console? On Win7 x64 using Python 2.6.5
(r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] I get the
following traceback:

In [1]: def f():
   ...: 1/0
   ...: 

In [2]: f()
---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent call last)
C:\dev\bin\Python26\Scripts\<ipython-input-2-506f353d3ef9> in <module>()
----> 1 f()

C:\dev\bin\Python26\Scripts\<ipython-input-1-ef41297586cf> in f()
      1 def f():
----> 2 1/0
      3 

ZeroDivisionError: integer division or modulo by zero

In [3]: debug
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
C:\dev\bin\Python26\Scripts\<ipython-input-4-f7014fdda7a3> in <module>()
----> 1 get_ipython().magic(u"debug ")


C:\dev\bin\Python26\lib\site-packages\IPython\core\interactiveshell.pyc in
magic(self, arg_s)
    1783 self._magic_locals = sys._getframe(1).f_locals
    1784 with self.builtin_trap:
->  1785 result = fn(magic_args)
    1786 # Ensure we're not keeping object references around:

    1787 self._magic_locals = {}


C:\dev\bin\Python26\lib\site-packages\IPython\core\magic.pyc in
magic_debug(self, parameter_s)
    1265 the %pdb magic for more details.
    1266 """
->  1267 self.shell.debugger(force=True)
    1268 
    1269 @testdec.skip_doctest

    
C:\dev\bin\Python26\lib\site-packages\IPython\core\interactiveshell.pyc in
debugger(self, force)
    782 pm = lambda : self.InteractiveTB.debugger(force=True)
    783 
--> 784 with self.readline_no_record:
    785 pm()
    786 

    
C:\dev\bin\Python26\lib\site-packages\IPython\core\interactiveshell.pyc in
__enter__(self)
    145 def __enter__(self):
    146 if self._nested_level == 0:
--> 147 self.orig_length = self.current_length()
    148 self.readline_tail = self.get_readline_tail()
    149 self._nested_level += 1


C:\dev\bin\Python26\lib\site-packages\IPython\core\interactiveshell.pyc in
current_length(self)
    166 
    167 def current_length(self):
--> 168 return self.shell.readline.get_current_history_length()
    169 
    170 def get_readline_tail(self, n=10):

AttributeError: 'module' object has no attribute 'get_current_history_length'

In [5]: 

Thanks,
Dave




More information about the IPython-dev mailing list