2. Starting a Python session

Starting a Python session differs somewhat depending on your operating system.

2.1. Windows

If you are running Windows, three different Python shells are available under the JModelica.org start menu.

  • Python - Normal command shell started with Python.

  • IPython - Interactive shell for Python with, for example, code highlighting and tab completion.

  • pylab - IPython shell which also loads the numeric computation environment PyLab.

2.2. Linux or Mac OS

To start the IPython shell with PyLab on Linux or Mac OS X, open a terminal and enter the command:

> $JMODELICA_HOME/Python/jm_ipython.sh -pylab