Skip to content

Add support for environment variable contributors in Jupyter kernel#17341

Open
oded-ist wants to merge 1 commit intomicrosoft:mainfrom
oded-ist:env-provider
Open

Add support for environment variable contributors in Jupyter kernel#17341
oded-ist wants to merge 1 commit intomicrosoft:mainfrom
oded-ist:env-provider

Conversation

@oded-ist
Copy link

  • Introduced KernelEnvVarsContributorRegistry to manage environment variable providers.
  • Updated KernelEnvironmentVariablesService to merge contributed environment variables with existing ones.
  • Added registerEnvironmentVariablesProvider to Jupyter API to allow registration of environment variable providers.
  • Added tests to verify the correct merging of environment variables from contributors.

Motivation: The kernel in our organization needs to know the notebook filename on startup. In Jupyter project, this is passed in the connection file in field jupyter_session. In vscode, this is impossible without modifying the vscode-jupyter extension.

…anagement

- Introduced `KernelEnvVarsContributorRegistry` to manage environment variable providers.
- Updated `KernelEnvironmentVariablesService` to merge contributed environment variables with existing ones.
- Added registerEnvironmentVariablesProvider to Jupyter API to allow registration of environment variable providers.
- Added tests to verify the correct merging of environment variables from contributors.
@oded-ist
Copy link
Author

@microsoft-github-policy-service agree company="IstraResearch"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant