def inspect(kc, **kwargs):
    """ Send inspect request to kernel and return reply content.
    """
    req_msg = kc.session.msg('inspect_request', kwargs)
    kc.shell_channel.send(req_msg)
    reply = kc.get_shell_msg(timeout=1)
    return reply['content']