parameters: (self)
return_statement: return magic_dict
docstring: turn magics dict into jsonable dict of the same structure
          
          replaces object instances with their class names as strings
docstring_summary: turn magics dict into jsonable dict of the same structure
          
          replaces object instances with their class names as strings
docstring_tokens: turn magics dict into jsonable dict of the same structure replaces object instances with their class names as strings
function: def _jsonable(self):
          """turn magics dict into jsonable dict of the same structure
          
          replaces object instances with their class names as strings
          """
          magic_dict = {}
          mman = self.magics_manager
          magics = mman.lsmagic()
          for key, subdict in magics.items():
              d = {}
              magic_dict[key] = d
              for name, obj in subdict.items():
                  try:
                      classname = obj.__self__.__class__.__name__
                  except AttributeError:
                      classname = 'Other'
                  
                  d[name] = classname
          return magic_dict
function_tokens: def _jsonable ( self ) : magic_dict = { } mman = self . magics_manager magics = mman . lsmagic ( ) for key , subdict in magics . items ( ) : d = { } magic_dict [ key ] = d for name , obj in subdict . items ( ) : try : classname = obj . __self__ . __class__ . __name__ except AttributeError : classname = 'Other' d [ name ] = classname return magic_dict