示例#1
0
文件: monitor.py 项目: yanxg/spyder
 def isdefined(self, obj, force_import=False):
     """Return True if object is defined in current namespace"""
     ns = self.get_current_namespace(with_magics=True)
     return isdefined(obj, force_import=force_import, namespace=ns)
示例#2
0
 def is_defined(self, objtxt, force_import=False):
     """Return True if object is defined"""
     return isdefined(objtxt, force_import=force_import,
                      namespace=self.locals)
示例#3
0
 def isdefined(self, obj, force_import=False):
     """Return True if object is defined in current namespace"""
     ns = self.get_current_namespace(with_magics=True)
     return isdefined(obj, force_import=force_import, namespace=ns)
示例#4
0
 def is_defined(self, objtxt, force_import=False):
     """Return True if object is defined"""
     return isdefined(objtxt,
                      force_import=force_import,
                      namespace=self.locals)