Auto-completion on IPython now working with modelx from the second level when Jedi is off
fumitoh opened this issue · comments
The default completer setting of IPython ('limited'
) disallows listing the attributes of modelx objects from the second level.
Workaround Options
Option 1: Turning Jedi On
-
In Spyder: Check the option "Use Jedi completion in the IPython console," located at Preferences -> IPython console -> Advanced settings.
-
In VSCode: Type the following command in the IPython command prompt:
%config IPCompleter.use_jedi=True
Option 2: Changing the Evaluation Parameter
To change the evaluation parameter to 'unsafe'
, type the following commands:
%config IPCompleter.use_jedi=False
%config IPCompleter.evaluation='unsafe'
Setting Parameters in the Config File
Both parameters can also be set in the config file located at .ipython/profile_default/ipython_config.py
under your home directory.