def test(): """Standalone test""" import sys from AnyQt.QtWidgets import QApplication from Orange.classification.tree import TreeLearner, SklTreeLearner from Orange.regression.tree import TreeLearner, SklTreeRegressionLearner a = QApplication(sys.argv) ow = OWTreeGraph() data = Table("titanic") # data = Table("housing")[:30] clf = SklTreeLearner()(data) # clf = TreeLearner()(data) clf.instances = data ow.ctree(clf) ow.show() ow.raise_() a.exec_() ow.saveSettings()