Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pycharm code autocomplete does not work for python console with ipython

autocomplete works in the edit window, but does not work in the python console, which has Ipython environment. However, when I run ipython in the terminal window, Ipython comes up and autocomplete works.

I am using Pycharm Community version 4.0.6 under windows. Someone suggest the autocomplete key binding is ctrl-space, however, i found that in edit window, TAB works for autocompleting.

like image 543
shelper Avatar asked Apr 22 '15 15:04

shelper


People also ask

Why Autocomplete is not working in PyCharm?

You need to go into the project settings and configure the interpreter to point at the virtualenv. PyCharm will then index the interpreter and allow you to autocomplete. The virtualenv may be auto-detected in the dropdown menu on the left.

How do I enable autocomplete in PyCharm?

Invoke basic completionPress Ctrl+Space or choose Code | Code Completion | Basic from the main menu. If necessary, press Ctrl+Space for the second time (or press Ctrl+Alt+Space ).

How do I add IPython console to PyCharm?

Fixing is quite easy: Go to Settings -> Project: <project name> -> Project interpreter At the bottom of the packages list you should see a + sign. Press that button, find ipython and install it. On the next time you'll open your console, IPython will be detected and used automatically.

How does PyCharm integrate with IPython?

Use the magic commands of IPythonFrom the main menu, select Tools | Python Console. If IPython has been properly installed, PyCharm will report about the version used.


1 Answers

I had a similar problem, namely i wanted to run a different than the default environment in python console. From settings, you can change the interpreter used for python console. (see picture). You should be able to set there the right environment. Make sure you have installed ipython as a package in the interpreter of your choosing, so ipython will automatically become the default interpreter of the console.

enter image description here

Last you can set/unset use of ipython from the settings... enter image description here

like image 65
ntg Avatar answered Oct 17 '22 14:10

ntg