Show More
@@ -228,12 +228,12 b' class KernelManager(ConnectionFileMixin):' | |||
|
228 | 228 | # build the Popen cmd |
|
229 | 229 | extra_arguments = kw.pop('extra_arguments', []) |
|
230 | 230 | kernel_cmd = self.format_kernel_cmd(extra_arguments=extra_arguments) |
|
231 | if self.kernel_cmd: | |
|
231 | env = os.environ.copy() | |
|
232 | # Don't allow PYTHONEXECUTABLE to be passed to kernel process. | |
|
233 | # If set, it can bork all the things. | |
|
234 | env.pop('PYTHONEXECUTABLE', None) | |
|
235 | if not self.kernel_cmd: | |
|
232 | 236 | # If kernel_cmd has been set manually, don't refer to a kernel spec |
|
233 | env = os.environ | |
|
234 | else: | |
|
235 | # Environment variables from kernel spec are added to os.environ | |
|
236 | env = os.environ.copy() | |
|
237 | 237 | env.update(self.kernel_spec.env or {}) |
|
238 | 238 | # launch the kernel subprocess |
|
239 | 239 | self.kernel = self._launch_kernel(kernel_cmd, env=env, |
General Comments 0
You need to be logged in to leave comments.
Login now