An object for managing IPython profile directories.
An object to manage the profile directory and its resources.
The profile directory is used by all IPython applications, to manage configuration, logging and security.
This object knows how to find, create and manage these directories. This should be used by any code that wants to handle profiles.
Copy a default config file into the active profile directory.
Default configuration files are kept in IPython.config.default. This function moves these from that location to the working profile directory.
Create a new profile directory given a full path.
profile_dir : str
Create a profile dir by profile name and path.
path : unicode
name : unicode
Find/create a profile dir and return its ProfileDir.
This will create the profile directory if it doesn’t exist.
profile_dir : unicode or str
Find an existing profile dir by profile name, return its ProfileDir.
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. py3compat.getcwd() 2. ipython_dir
ipython_dir : unicode or str
name : unicode or str