class_docstr: Magics to manage various aspects of the user's namespace.
  
  These include listing variables, introspecting into them, etc.
class_docstr_tok: ["Magics","to","manage","various","aspects","of","the","user","'s","namespace",".","These","include","listing","variables",",","introspecting","into","them",",","etc","."]
docstr: Print (or run through pager) the file where an object is defined.
  
  The file opens at the line where the object definition begins. IPython
  will honor the environment variable PAGER if set, and otherwise will
  do its best to print the file in a convenient form.
  
  If the given argument is not an object currently defined, IPython will
  try to interpret it as a filename (automatically adding a .py extension
  if needed). You can thus use %pfile as a syntax highlighting code
  viewer.
docstr_tok: ["Print","(","or","run","through","pager",")","the","file","where","an","object","is","defined",".","The","file","opens","at","the","line","where","the","object","definition","begins",".","IPython","will","honor","the","environment","variable","PAGER","if","set",",","and","otherwise","will","do","its","best","to","print","the","file","in","a","convenient","form",".","If","the","given","argument","is","not","an","object","currently","defined",",","IPython","will","try","to","interpret","it","as","a","filename","(","automatically","adding","a",".py","extension","if","needed",")",".","You","can","thus","use","%","pfile","as","a","syntax","highlighting","code","viewer","."]
code: def pfile(self, parameter_s="", namespaces=None):
      """Print (or run through pager) the file where an object is defined.
  
      The file opens at the line where the object definition begins. IPython
      will honor the environment variable PAGER if set, and otherwise will
      do its best to print the file in a convenient form.
  
      If the given argument is not an object currently defined, IPython will
      try to interpret it as a filename (automatically adding a .py extension
      if needed). You can thus use %pfile as a syntax highlighting code
      viewer."""
  
      # first interpret argument as an object name
      out = self.shell._inspect("pfile", parameter_s, namespaces)
      # if not, try the input as a filename
      if out == "not found":
          try:
              filename = get_py_filename(parameter_s)
          except IOError as msg:
              print(msg)
              return
          page.page(
              self.shell.pycolorize(
                  read_py_file(filename, skip_encoding_cookie=False)
              )
          )
  
imports: from __future__ import print_function
  import gc
  import re
  import sys
  from IPython.core import page
  from IPython.core.error import StdinNotImplementedError, UsageError
  from IPython.core.magic import Magics, magics_class, line_magic
  from IPython.testing.skipdoctest import skip_doctest
  from IPython.utils.encoding import DEFAULT_ENCODING
  from IPython.utils.openpy import read_py_file
  from IPython.utils.path import get_py_filename
  from IPython.utils.py3compat import unicode_type
label_desc: Use image node_id 6 for calling the NamespaceMagics obj's underlying member method code with example usage: obj.pfile(parameter_s, namespaces) without return types