Tag Archive for 'Python'

Page 3 of 3

IPython overview

IPython-screenshotI’ve tried many IDE’s (interactive development environments) — ones with fancy user interfaces and whizbang features — but I kept coming back to IPython.
It doesn’t look like much. No fancy icons or anything, it just runs in a terminal window. After using it though, I can’t imagine going back to anything else. The way it handles the history of everything you’ve typed, the interactive debugging, magic commands, tab-completion, and easy editing using your default text editor . . . it has all the features that lets you code quickly and easily.
Continue reading ‘IPython overview’

Creating a custom bar plot in matplotlib

Bar plots are one of the simplest kinds of plots, but for some reason in many programs it’s difficult to get the labels you want, correct error bars, and control over every aspect of the plot. Here’s how to create a custom bar plot using the Python plotting module matplotlib. Continue reading ‘Creating a custom bar plot in matplotlib’

Modules in Python

What is a Python module?

A module in Python is a collection of code that can be used in other programs. You can think of a module as being like a toolbox, where another program can import all or just a few of the tools found in the module. Here are some reasons to use modules, and some examples of their use.
Continue reading ‘Modules in Python’