예제 #1
0
파일: launcher.py 프로젝트: rgbkrk/spylon
 def _repr_pretty_(self, p, cycle):
     from IPython.lib.pretty import _dict_pprinter_factory
     fn = _dict_pprinter_factory('{', '}')
     excluded_fields = {
         '_enable_surrogate', '_attr', '_parent', '_surrogate'
     }
     fn(keyfilter(lambda k: k not in excluded_fields, self.__dict__), p,
        cycle)
예제 #2
0
파일: launcher.py 프로젝트: rgbkrk/spylon
 def _repr_pretty_(self, p, cycle):
     from IPython.lib.pretty import _dict_pprinter_factory
     fn = _dict_pprinter_factory('ConfiguredProperties {', '}')
     fn(self._conf_dict, p, cycle)
예제 #3
0
파일: launcher.py 프로젝트: MaxPoint/spylon
 def _repr_pretty_(self, p, cycle):
     from IPython.lib.pretty import _dict_pprinter_factory
     fn = _dict_pprinter_factory('{', '}')
     excluded_fields = {'_enable_surrogate', '_attr', '_parent', '_surrogate'}
     fn(keyfilter(lambda k: k not in excluded_fields, self.__dict__), p, cycle)
예제 #4
0
파일: launcher.py 프로젝트: MaxPoint/spylon
 def _repr_pretty_(self, p, cycle):
     from IPython.lib.pretty import _dict_pprinter_factory
     fn = _dict_pprinter_factory('ConfiguredProperties {', '}')
     fn(self._conf_dict, p, cycle)
예제 #5
0
파일: row.py 프로젝트: tchordia/ray
    def _repr_pretty_(self, p, cycle):
        from IPython.lib.pretty import _dict_pprinter_factory

        pprinter = _dict_pprinter_factory(f"{type(self).__name__}({{", "})")
        return pprinter(self, p, cycle)