I am using PyCharm IDE with Anaconda distribution. when I run:Tools > Python Console... PyCharm uses ipython console which is part of Anaconda distribution.
But it using a default profile. I already tried add option --profile=myProfileName in Environment variables and in Interpreter options in Settings > Build, Execution, Deployment > Console > Python Console But it keeps using default profile.
My question is how to set different ipython profile in PyCharm?
In order to set a different IPython profile in PyCharm, you will need to configure the PyCharm's Python Console to use the desired profile. Here are the steps to do this:
Go to File > Settings > Build, Execution, Deployment > Console > Python Console.
In the "Interpreter options" field, add the option --profile=myProfileName, replacing myProfileName with the name of the profile you want to use.
Apply the changes and close the settings window.
Restart the PyCharm's Python Console, it should now be using the desired IPython profile.
Alternatively, you can also specify the profile in the command line arguments when starting IPython. You can add the command line argument --profile=myProfileName to the command that starts IPython in PyCharm.
You can check which profile is active by running ipython profile list. It should show the active profile and you can confirm that the profile you specified is being used.