Ok, a little tip for all you ipython users out there.
If you are really used to the way your traditional bash shell works, there is one thing I found that ipython by default lacks. And that is the clear screen command. In ipython by default, you have the !clear command to clear your screen space. But it's not as efficient as the Ctrl+l keyboard shortcut. So I wanted this behavior in ipython too. Here is how you do it:
In your ~/.ipython/ipythonrc you should locate the line:
readline_parse_and_bind "\C-l": possible-completions
and change it to:
readline_parse_and_bind "\C-l": clear-screen
Now, I much rather use Tab for possible completions (like the bash shell).
As you can see, ipython uses the readline library to map keyboard shortcuts.
man readline for more on this topic.
Comments
Post new comment