Skip to content

Commit 3bedbae

Browse files
author
yuta_kudo
committed
Add auto completion for table into kernel.py
1 parent 071c186 commit 3bedbae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matlab_kernel/kernel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def get_completions(self, info):
178178

179179
if "." in name:
180180
prefix, _ = name.rsplit(".", 1)
181-
if self._matlab.eval("isstruct({})".format(prefix)) or self._matlab.eval("istable({})".format(prefix)):
181+
if self._matlab.eval("isstruct({})".format(prefix)) | self._matlab.eval("istable({})".format(prefix)):
182182
compls = ["{}.{}".format(prefix, compl) for compl in compls]
183183

184184
return compls

0 commit comments

Comments
 (0)