def is_complete(self, code):
        msg = self.session.msg('is_complete_request', {'code': code})
        self.shell_channel.send(msg)
        return msg['header']['msg_id']
Ask the kernel whether some code is complete and ready to execute.
dataset/ETHPy150Open jupyter/jupyter_client/jupyter_client/client.py/KernelClient.is_complete