fumitoh / modelx

Use Python like a spreadsheet!
https://modelx.io
GNU Lesser General Public License v3.0
96 stars 21 forks source link

Auto-completion on IPython now working with modelx from the second level when Jedi is off #128

Open fumitoh opened 3 months ago

fumitoh commented 3 months ago

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.