Skip to content

Commit

Permalink
Merge branch 'main' into use-hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed May 27, 2022
2 parents 4980d7a + d5f2ad9 commit 222efd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/users/configuration.rst
Expand Up @@ -24,7 +24,7 @@ By default, Jupyter Server looks for server-specific configuration in a ``jupyte
/Users/username/Library/Jupyter/runtime
The paths under ``config`` are listed in order of precedence. If the same trait is listed in multiple places, it will be set to the value from the file will highest precendence.
The paths under ``config`` are listed in order of precedence. If the same trait is listed in multiple places, it will be set to the value from the file with the highest precendence.


Jupyter Server uses IPython's traitlets system for configuration. Traits can be
Expand Down
5 changes: 4 additions & 1 deletion jupyter_server/services/sessions/sessionmanager.py
@@ -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 @@ -272,7 +273,9 @@ async def start_kernel_for_session(self, session_id, path, name, type, kernel_na
# allow contents manager to specify kernels cwd
kernel_path = self.contents_manager.get_kernel_path(path=path)
kernel_id = await self.kernel_manager.start_kernel(
path=kernel_path, kernel_name=kernel_name
path=kernel_path,
kernel_name=kernel_name,
env={**os.environ, "JPY_SESSION_NAME": path},
)
return kernel_id

Expand Down

0 comments on commit 222efd6

Please sign in to comment.