def _get_nb_path(sess, kernel_id):
    """ Given a session and kernel ID, returns the notebook path for the
        session, or None if there is no notebook for the session.    
    """
    if sess['kernel']['id'] == kernel_id:
        return sess['notebook']['path']
    return None