def load_default_config(ipython_dir=None):
 if (ipython_dir is None):
  ipython_dir = get_ipython_dir()
 profile_dir = os.path.join(ipython_dir, 'profile_default')
 config = Config()
 for cf in Application._load_config_files('ipython_config', path=profile_dir):
  config.update(cf)
 return config

def load_default_config ( ipython_dir = None ) : if ( ipython_dir is None ) : ipython_dir = get_ipython_dir ( ) profile_dir = os . path . join ( ipython_dir , 'profile_default' ) config = Config ( ) for cf in Application . _load_config_files ( 'ipython_config' , path = profile_dir ) : config . update ( cf ) return config
load the default config file from the default ipython_dir .