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.
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.
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 ).
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.
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.
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.
Last you can set/unset use of ipython from the settings...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With