コード例 #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)