Skip to content

Commit 3863a07

Browse files
authored
Merge pull request #24 from martinRenou/fix_backward_compat
Fix backward compat issue
2 parents 0a6a819 + 78951f7 commit 3863a07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xeus_python_shell/shell.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, shell=None, config=None, **traits):
2121

2222

2323
class XPythonShell(InteractiveShell):
24-
def __init__(self, use_jedi, *args, **kwargs):
24+
def __init__(self, use_jedi=False, *args, **kwargs):
2525
super(XPythonShell, self).__init__(*args, **kwargs)
2626

2727
self.kernel = None
@@ -76,7 +76,7 @@ def complete_code(self, code, cursor_pos):
7676

7777

7878
class XPythonShellApp(BaseIPythonApplication, InteractiveShellApp):
79-
def initialize(self, use_jedi, argv=None):
79+
def initialize(self, use_jedi=False, argv=None):
8080
super(XPythonShellApp, self).initialize(argv)
8181

8282
self.user_ns = {}
@@ -96,7 +96,7 @@ def initialize(self, use_jedi, argv=None):
9696
sys.stdout.flush()
9797
sys.stderr.flush()
9898

99-
def init_shell(self, use_jedi):
99+
def init_shell(self, use_jedi=False):
100100
self.shell = XPythonShell.instance(
101101
use_jedi,
102102
display_pub_class=XDisplayPublisher,

0 commit comments

Comments
 (0)