Hi,
Im using KNIME 4.3 and 4.4 on a WIN machine.
When typing Python code in the ‘Python Script’ node and trying to activate the ‘autocompletion’ a Warning appears in the console windows of the node (and no autocompletion happens).
I encountered this problem in KIME 4.3 and 4.4
Best Erich
For me autocompletion only works on python modules not on the actual dataframe table. I do not get a warning issue. Maybe you want to check your python version (environment).
br
Thx Daniel for your reply - but I get the same Warning when using the autocompletion on any Class/object.
I’m using a freshly created ENV in Anconda (with Python 3.8.11, jedi 0.18.0 ) having no problems with my Jupyter Notebooks - including autocompletion.
However, the warning shown is thrown in a TRY-EXCEPT block in a KNIME plugin calling Jedi (see scode below). Unfortunately, even the log file has no more information
Best
E
… Snippet from the File PythonKernalBase.py
if self.has_auto_complete():
try:
# get possible completions by using Jedi and providing the source code, and the cursor position
# note: the line number (argument 2) gets incremented by 1 since Jedi’s line numbering starts at 1
completions = jedi.Script(source_code, line + 1, column, None).completions()
# extract interesting information
for index, completion in enumerate(completions):
response.append({‘name’: completion.name, ‘type’: completion.type, ‘doc’: completion.docstring()})
except Exception:
warnings.warn(“An error occurred while autocompleting.”)
return response