##// END OF EJS Templates
fix kernel connection messsage with non-default profile...
MinRK -
Show More
@@ -221,11 +221,14 b' class KernelApp(BaseIPythonApplication):'
221 221 # Helper to make it easier to connect to an existing kernel.
222 222 # set log-level to critical, to make sure it is output
223 223 self.log.critical("To connect another client to this kernel, use:")
224 if os.path.dirname(self.connection_file) == self.profile_dir.security_dir:
224
225 basename = os.path.basename(self.connection_file)
226 if basename == self.connection_file or \
227 os.path.dirname(self.connection_file) == self.profile_dir.security_dir:
225 228 # use shortname
226 tail = os.path.basename(self.connection_file)
229 tail = basename
227 230 if self.profile != 'default':
228 tail += " --profile %s" % self.profile_name
231 tail += " --profile %s" % self.profile
229 232 else:
230 233 tail = self.connection_file
231 234 self.log.critical("--existing %s", tail)
General Comments 0
You need to be logged in to leave comments. Login now