code: def get_doc(self, objtxt):
          
          try:
              import matplotlib
              matplotlib.rcParams['docstring.hardcopy'] = True
          except:
              pass
          from spyder_kernels.utils.dochelpers import getdoc
  
          obj, valid = self._eval(objtxt)
          if valid:
              return getdoc(obj)
docs: Get object documentation dictionary