parameters: (self, key, value)
docstring: DEPRECATED: Set a metadata key/value.
  
          Use .metadata[key] = value instead.
docstring_summary: DEPRECATED: Set a metadata key/value.
docstring_tokens: DEPRECATED : Set a metadata key / value .
function: def set_metadata(self, key, value):
          """DEPRECATED: Set a metadata key/value.
  
          Use .metadata[key] = value instead.
          """
          if key == 'help':
              msg = "use the instance .help string directly, like x.help = value"
          else:
              msg = "use the instance .metadata dictionary directly, like x.metadata[key] = value"
          warn("Deprecated in traitlets 4.1, " + msg, DeprecationWarning, stacklevel=2)
          self.metadata[key] = value
function_tokens: def set_metadata ( self , key , value ) : if key == 'help' : msg = "use the instance .help string directly, like x.help = value" else : msg = "use the instance .metadata dictionary directly, like x.metadata[key] = value" warn ( "Deprecated in traitlets 4.1, " + msg , DeprecationWarning , stacklevel = 2 ) self . metadata [ key ] = value