How to initialize a new Python SDK

Answered

Hello,

I'm in the process of creating a IDEA plugin that uses a Gradle plugin that allows for Conda environments.  As part of this I have the paths to the python executable inside of the conda environment that was resolved by my Gradle plugin.  With that information I need to initialize a Python SDK from scratch and associate with the project that is being imported.  How do I go about initializing a new Python SDK based on the path to the executable inside the conda environment? Thank you very much!

 

-Jason Morefield

2 comments
Comment actions Permalink

You could take a look at PyAddExistingCondaEnvPanel, it initializes a new Conda SDK from an existing Python executable inside a Conda environment, you may find the API used in this class applicable for your case. Feel free to ask more questions.

0
Comment actions Permalink

Thank you very much! I'll take a look at that and see if I can get it to work :)

 

-Jason Morefield

0

Please sign in to leave a comment.