Skip to content

Commit a3f74f2

Browse files
committed
Merge pull request #133 from pankajp/specify-env-to-launch-kernel
Add ability to specify the env dict for launching the kernel
2 parents d68f79d + c446df3 commit a3f74f2

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)