diff --git a/Orange/widgets/data/owpythonscript.py b/Orange/widgets/data/owpythonscript.py index 3684a79a94f..7736badcbc9 100644 --- a/Orange/widgets/data/owpythonscript.py +++ b/Orange/widgets/data/owpythonscript.py @@ -391,7 +391,7 @@ class Outputs: signal_names = ("data", "learner", "classifier", "object") - settings_version = 2 + settings_version = 3 scriptLibrary: 'List[_ScriptData]' = Setting([{ "name": "Table from numpy", "script": DEFAULT_SCRIPT, @@ -967,6 +967,8 @@ def migrate_settings(cls, settings, version): library = [dict(name=s.name, script=s.script, filename=s.filename) for s in scripts] # type: List[_ScriptData] settings["scriptLibrary"] = library + elif version is not None and version < 3: # qtconsole + settings['useInProcessKernel'] = True def onDeleteWidget(self): self.editor.terminate()