Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Very rudimentary fallback support for help in pinfo.

See #1682.
  • Loading branch information...
commit 7df3315278a326f70431c6915939488398f47dca 1 parent e395f6e
@bfroehle authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 IPython/core/magic.py
View
8 IPython/core/magic.py
@@ -558,8 +558,12 @@ def magic_pinfo(self, parameter_s='', namespaces=None):
if "*" in oname:
self.magic_psearch(oname)
else:
- self.shell._inspect('pinfo', oname, detail_level=detail_level,
- namespaces=namespaces)
+ found = self.shell._inspect('pinfo', oname,
+ detail_level=detail_level,
+ namespaces=namespaces)
+ if found == 'not found':
+ # One last try, using pydoc
+ help(str(oname))
def magic_pinfo2(self, parameter_s='', namespaces=None):
"""Provide extra detailed information about an object.
Please sign in to comment.
Something went wrong with that request. Please try again.