title: Is there a way to retrieve the currently selected conda environment and/or execute commands in it?
body: <p>Related to <a href="https://github.com/lorenzo2897/vscode-ipe/issues/162" rel="nofollow noreferrer">this vscode extension issue</a>, but more of a general question.
  When I select a virtual environment to use (be it virtualenv, conda, etc) is there a possibility for other extensions to retrieve the environment and to run commands into it?</p>
  
  <p>Specifically for the problem in the issue linked above (as an example of the intended use case), they need to retrieve information from Jupyter, which is done via <code>execSync</code> calls. These spawn a new shell, so before running any command it's necessary to reactivate whatever environment is selected.</p>