Skip to content
Advertisement

command line ipython with –pylab + more imports

The --pylab command line arguments makes ipython a quick but powerful calculator in the terminal window which I use quite often. Is there a way to pass other useful imports to ipython via command line, such as

JavaScript

which makes it even more convenient to use?

Advertisement

Answer

If you have installed sympy you get script that starts ipython with sympy imports. This script may give you ideas.

JavaScript

There may also be a place in the profile to specify imports, but I haven’t explored that recently.

Or use the ‘-c’ option:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement