This is a development version (latest) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython latest / IPython / core / profiledir / ProfileDir / find_profile_dir_by_name

classmethod

IPython.core.profiledir:ProfileDir.find_profile_dir_by_name

source: /IPython/core/profiledir.py :202

Summary

Find an existing profile dir by profile name, return its ProfileDir.

Extended Summary

This searches through a sequence of paths for a profile dir. If it is not found, a ProfileDirError exception will be raised.

The search path algorithm is: 1. os.getcwd() # removed for security reason. 2. ipython_dir

Parameters

ipython_dir : unicode or str

The IPython directory to use.

name : unicode or str

The name of the profile. The name of the profile directory will be "profile_<profile>".

Aliases

  • IPython.core.application.ProfileDir.find_profile_dir_by_name