Skip to content

Commit 234cdff

Browse files
authored
Allow to use the resource directory in the kernel command-line.
1 parent 420cf25 commit 234cdff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jupyter_client/manager.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ def format_kernel_cmd(self, extra_arguments=None):
186186
ns = dict(connection_file=self.connection_file,
187187
prefix=sys.prefix,
188188
)
189+
190+
if self.kernel_spec:
191+
ns["resource_dir"] = self.kernel_spec.resource_dir
192+
189193
ns.update(self._launch_args)
190194

191195
pat = re.compile(r'\{([A-Za-z0-9_]+)\}')

0 commit comments

Comments
 (0)