def testInitPlugin(self): self.plugin_conf.append("automount") names = self.plugin_conf[:] self.ui.preferences.write() with FilterFailedToLoadPlugin(): myui = NotebookInterface() # no notebook yet - only independent plugins are loaded self.assertEqual(len(myui.plugins), 1) self.assertEqual(myui.plugins[0].plugin_key, "automount") myui.open_notebook(self.nb) # now the rest is loaded as well self.assertEqual(len(myui.plugins), len(names))
def open_notebook(self, notebook): NotebookInterface.open_notebook(self, notebook) #~ self.notebook.index.update() self.linker = WWWLinker(self.notebook) if self.template: self.template.set_linker(self.linker)