Python Console: Show suggestions as you type

Answered

I'm a big fan of the code completion feature that automatically shows pop-ups with completion suggestions as you are typing. It works when writing in both languages I'm currently using, kotlin and python.

The option can be found in Preferences -> Editor -> General -> Code Completion

But in the interactive Python console, I'm afraid it does not work. Though I see no reason why it shouldn't because selecting from the menu Code -> Completion -> Basic or activating that action through a hotkey while the cursor is in the console shows a similar pop-up.

Perhaps the option I mentioned above can work for both the Editor and the Python Console, or perhaps there could be a separate option in Build, Execution, Deployment -> Console -> Python Console

0
3 comments

Hi, I believe it's mostly due to historical reasons. I created a ticket in our bug tracker: PY-31669. Please feel free to follow and comment.

1
Avatar
Permanently deleted user

Thanks Pavel! Quick, related question: can we clear the buffer in the ipython console?

I've tried looking for an IDE action, but could not find anything.

I searched the python console docs, but could not find anything.

I tried both `!clear ` and `import os; os.system('clear')' (I'm on a Mac btw), but both commands resulted in `TERM environment variable not set.`

0

>can we clear the buffer in the ipython console?

Unfortunately, it is not possible at the moment. There's an old relevant issue in the tracker but it had a little traction https://youtrack.jetbrains.com/issue/PY-12387

0

Please sign in to leave a comment.