def METHOD_NAME(self, nbpath=None):
    """
    Write a jupyter_ notebook to ``nbpath``. If nbpath is None, a temporay file in the current
    working directory is created. Return path to the notebook.
    """
    nbformat, nbv, nb = self.get_nbformat_nbv_nb(title=None)
    nb.cells.extend([
        nbv.new_code_cell("ncfile = abilab.abiopen('%s')" % self.filepath),
        nbv.new_code_cell("print(ncfile)"),
        nbv.new_code_cell("# ncfile.visualize_qpoint_nu(qpoint, nu, spin=0, appname='vesta'")
    ])
    return self._write_nb_nbpath(nb, nbpath)