Assume we launch Notebook with the same Python which executed us.

def get_notebook_daemon_command(self, name, action, port=0, *extra):
        """
        Assume we launch Notebook with the same Python which executed us.
        """

        return [self.python, self.cmd, action, self.get_pid(name), self.get_work_folder(name), port, self.kill_timeout] + list(extra)