I believe that the line: https://github.com/ipython/ipython/blob/master/IPython/kernel/zmq/session.py#L682 stream.send_multipart(msg_list, flags, copy=copy) should be: stream.send_multipart(to_send, flags, copy=copy)