Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fumitoh opened this issue Jun 16, 2024 · 0 comments

Comments

@fumitoh
Copy link
Owner

fumitoh commented Jun 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant