##// END OF EJS Templates
install IPython kernel in temp IPython dir
Min RK -
Show More
@@ -165,6 +165,16 b' class PyTestController(TestController):'
165 ipydir = TemporaryDirectory()
165 ipydir = TemporaryDirectory()
166 self.dirs.append(ipydir)
166 self.dirs.append(ipydir)
167 self.env['IPYTHONDIR'] = ipydir.name
167 self.env['IPYTHONDIR'] = ipydir.name
168 # FIXME: install IPython kernel in temporary IPython dir
169 # remove after big split
170 try:
171 from jupyter_client.kernelspec import KernelSpecManager
172 except ImportError:
173 pass
174 else:
175 ksm = KernelSpecManager(ipython_dir=ipydir.name)
176 ksm.install_native_kernel_spec(user=True)
177
168 self.workingdir = workingdir = TemporaryDirectory()
178 self.workingdir = workingdir = TemporaryDirectory()
169 self.dirs.append(workingdir)
179 self.dirs.append(workingdir)
170 self.env['IPTEST_WORKING_DIR'] = workingdir.name
180 self.env['IPTEST_WORKING_DIR'] = workingdir.name
General Comments 0
You need to be logged in to leave comments. Login now