From 6521d1bb64d222f92657319438771ac2c3b77565 2013-10-23 02:45:39 From: MinRK Date: 2013-10-23 02:45:39 Subject: [PATCH] add target_name as first arg to Comm constructor --- diff --git a/IPython/kernel/comm/comm.py b/IPython/kernel/comm/comm.py index 198db19..28a4ece 100644 --- a/IPython/kernel/comm/comm.py +++ b/IPython/kernel/comm/comm.py @@ -56,7 +56,9 @@ class Comm(LoggingConfigurable): primary = Bool(True, help="Am I the primary or secondary Comm?") - def __init__(self, data=None, **kwargs): + def __init__(self, target_name='', data=None, **kwargs): + if target_name: + kwargs['target_name'] = target_name super(Comm, self).__init__(**kwargs) get_ipython().comm_manager.register_comm(self) if self.primary: