From b7e8ad8e20ce30941f1edc00181596223e0e8fc4 2012-06-20 05:40:19 From: Fernando Perez Date: 2012-06-20 05:40:19 Subject: [PATCH] Merge pull request #1991 from minrk/ofind fix _ofind attr in %page, which belongs to the shell object and not the magic one. --- 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)