From b4e5658e53ae1a9abaa10298f4ee2c7499b4521b 2012-06-20 04:30:51 From: MinRK Date: 2012-06-20 04:30:51 Subject: [PATCH] fix _ofind attr in %page _ofind is a shell attr, not Magics attr closes #1960 --- diff --git a/IPython/core/magics/basic.py b/IPython/core/magics/basic.py index 534a210..d7f3526 100644 --- a/IPython/core/magics/basic.py +++ b/IPython/core/magics/basic.py @@ -185,7 +185,7 @@ Currently the magic system has the following functions:""", raw = 'r' in opts oname = args and args or '_' - info = self._ofind(oname) + info = self.shell._ofind(oname) if info['found']: txt = (raw and str or pformat)( info['obj'] ) page.page(txt)