From 41c5954a8257634b2d7f8905ed8c874946de606c Mon Sep 17 00:00:00 2001 From: stonebig Date: Sat, 6 Jan 2018 16:29:04 +0100 Subject: [PATCH] more complete error message to help inqiure on this https://github.com/jupyter/jupyter_client/issues/329 --- jupyter_client/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jupyter_client/manager.py b/jupyter_client/manager.py index f488d5c42..21f6ca925 100644 --- a/jupyter_client/manager.py +++ b/jupyter_client/manager.py @@ -219,9 +219,10 @@ def start_kernel(self, **kw): """ if self.transport == 'tcp' and not is_local_ip(self.ip): raise RuntimeError("Can only launch a kernel on a local interface. " + "This one is not: %s." "Make sure that the '*_address' attributes are " "configured properly. " - "Currently valid addresses are: %s" % local_ips() + "Currently valid addresses are: %s" % (self.ip, local_ips()) ) # write connection file / get default ports