Skip to content

Commit

Permalink
owpythonscript: Increment settingsVersion, use inprocess kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
irgolic committed Jul 16, 2021
1 parent 2da0f12 commit 7c3cf63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Orange/widgets/data/owpythonscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 7c3cf63

Please sign in to comment.