Skip to content

Commit

Permalink
Make start_kernel env extend os.environ (#859)
Browse files Browse the repository at this point in the history
* Make start_kernel env extend os.environ

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
vidartf and pre-commit-ci[bot] authored May 27, 2022
1 parent 408c725 commit d5f2ad9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jupyter_server/services/sessions/sessionmanager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A base class session manager."""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import os
import pathlib
import uuid

Expand Down Expand Up @@ -274,7 +275,7 @@ async def start_kernel_for_session(self, session_id, path, name, type, kernel_na
kernel_id = await self.kernel_manager.start_kernel(
path=kernel_path,
kernel_name=kernel_name,
env={"JPY_SESSION_NAME": path},
env={**os.environ, "JPY_SESSION_NAME": path},
)
return kernel_id

Expand Down

0 comments on commit d5f2ad9

Please sign in to comment.