def ipython_only(option):
 if __IPYTHON__:
  return option
 argname = extract_option_object(option).name
 def d(f):
  @wraps(f)
  def _(*args, **kwargs):
   kwargs[argname] = None
   return f(*args, **kwargs)
  return _
 return d

def ipython_only ( option ) : if __IPYTHON__ : return option argname = extract_option_object ( option ) . name def d ( f ) : @ wraps ( f ) def _ ( * args , ** kwargs ) : kwargs [ argname ] = None return f ( * args , ** kwargs ) return _ return d
mark that an option should only be exposed in ipython .