Expose API for when the list of interpreters have changed #16683
Replies: 4 comments 3 replies
-
There's no way for us to know when a conda environment is created outside of the local environment since there isn't a push notification from conda itself. Short of polling conda for that information I don't see how we can provide this without hacking around conda and we explicitly are trying not to do that anymore. |
Beta Was this translation helpful? Give feedback.
-
Thanks |
Beta Was this translation helpful? Give feedback.
-
For future clarification, the ask is for an API, event, etc. which would notify when we have discovered different interpreters. This could be when the user manually triggers a search and does not have to be based on the direct act of an environment creation. |
Beta Was this translation helpful? Give feedback.
-
Moved to #17004 |
Beta Was this translation helpful? Give feedback.
-
Currently there's no way for Jupyter to know when user creates a new Python environment (conda, or the like).
Is it possible to get an event so we know that new interpreters have been created.
Note: Once thats done, how would we get these new interpreters. Not sure the
GetInterrpeters
is the best API for this, as that will return all interpreters all over again. Personally it would be nice to have something we can subscribe to, like an observable, this way we only get whats new).Beta Was this translation helpful? Give feedback.
All reactions