ipython/ipython — Issue #1456: Notebook ERROR: Internal Python error in the inspect module.
Author: mwiebe
Created: 2012-02-29 23:49:46+00:00
State: open

Looks like this is related to issue #53. I just got the following in the notebook:

```
In [33]:

# Switch to NumPy
pw.prtparam = p
```

```
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\ipython-0.13.dev-py2.7.egg\IPython\core\ultratb.py", line 756, in structured_traceback
records = _fixed_getinnerframes(etb, context, tb_offset)
File "C:\Python27\lib\site-packages\ipython-0.13.dev-py2.7.egg\IPython\core\ultratb.py", line 242, in _fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File "C:\Python27\lib\inspect.py", line 1041, in getinnerframes
framelist.append((tb.tb_frame,) + getframeinfo(tb, context))
File "C:\Python27\lib\inspect.py", line 1005, in getframeinfo
lines, lnum = findsource(frame)
File "C:\Python27\lib\inspect.py", line 578, in findsource
if pat.match(lines[lnum]): break
IndexError: list index out of range
ERROR: Internal Python error in the inspect module.
Below is the traceback from this internal error.

Unfortunately, your original traceback can not be constructed.
```