fumitoh / modelx

Use Python like a spreadsheet!

Home Page:https://modelx.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. In Spyder: Check the option "Use Jedi completion in the IPython console," located at Preferences -> IPython console -> Advanced settings.

    Jedi on Spyder

  2. 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.