Skip to content

Commit c446df3

Browse files
author
Pankaj Pandey
committed
Add ability to specify the env dict for launching the kernel
This adds ability to use different dict other than os.environ as the environment for launching the kernel
1 parent d68f79d commit c446df3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_client/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def start_kernel(self, **kw):
228228
# build the Popen cmd
229229
extra_arguments = kw.pop('extra_arguments', [])
230230
kernel_cmd = self.format_kernel_cmd(extra_arguments=extra_arguments)
231-
env = os.environ.copy()
231+
env = kw.pop('env', os.environ).copy()
232232
# Don't allow PYTHONEXECUTABLE to be passed to kernel process.
233233
# If set, it can bork all the things.
234234
env.pop('PYTHONEXECUTABLE', None)

0 commit comments

Comments
 (0)