예제 #1
0
    def load_notebooks(self):

        self.notebooks = ewu.all_notebooks(refresh=True)
        self.nbcounts = ewu.notebookcounts()

        _options = OrderedDict([(notebook.name, notebook.guid) for notebook in self.notebooks])
        self.notebook_widget.options=_options

        default_nb_guid = [notebook.guid for notebook in self.notebooks if notebook.defaultNotebook is True][0]
        self.notebook_widget.value = default_nb_guid