A profile is specific to a user on the local computer, and contains IPython preferences as well as the history, temporary and log files, and so on. By default, there is a single profile called the default profile. To create it manually, we can run the following command in the system shell:
ipython profile create
To specify a profile's name, we can use ipython profile create name
.
Profiles are typically stored in ~/.ipython
or ~/.config/ipython
, where ~
is the current user's home directory. This directory is typically called the IPython directory
and is sometimes referred to as IPYTHONDIR
. To find the exact location of the profiles, we can run the ipython locate
command for the IPython configuration directory, or ipython locate profile default
for a specific profile directory, where default
is the profile's name. A profile name is typically stored in a folder named profile_name
within the IPython configuration folder.