Using great tools is important, using autocompletion with great tools is even better. Update: use Jupyter, it’s just amazing!
Never used python interpreter?
Try it now! Install python if it’s not already the case and run
python in a terminal. There you go, you’re now inside a python interpreter!
Get interpreter autocompletion and history
Here is what you’re looking for, create this file:
You can also run this directly in your shell if you want to test before editing your
That’s it, fire up a terminal, run
python again and enjoy autocompletion when you hit
tab key :D
All of the commands you type in a local interpreter are now recorded to
tab when experimenting with modules from the interwebs and it will be much easier to discover all the things :)
For advanced usage, there are a few interpreters available that provide features out of the box such as syntax highlighting while you type:
I used IPython for a while and it’s great:
Even better, use Jupyter
You’ll love it and it’s even more fun when used with
Oh and you can save them as gists which is wonderful for sharing and embedding: