Show More
@@ -54,11 +54,11 b' alias to control them, but IPython lets you configure all of its objects from' | |||||
54 | the command-line by passing the full class name and a corresponding value; type |
|
54 | the command-line by passing the full class name and a corresponding value; type | |
55 | ``ipython --help-all`` to see this full list. For example:: |
|
55 | ``ipython --help-all`` to see this full list. For example:: | |
56 |
|
56 | |||
57 |
ipython -- |
|
57 | ipython --matplotlib qt | |
58 |
|
58 | |||
59 | is equivalent to:: |
|
59 | is equivalent to:: | |
60 |
|
60 | |||
61 |
ipython --TerminalIPythonApp. |
|
61 | ipython --TerminalIPythonApp.matplotlib='qt' | |
62 |
|
62 | |||
63 | Note that in the second form, you *must* use the equal sign, as the expression |
|
63 | Note that in the second form, you *must* use the equal sign, as the expression | |
64 | is evaluated as an actual Python assignment. While in the above example the |
|
64 | is evaluated as an actual Python assignment. While in the above example the | |
@@ -1003,8 +1003,8 b' object, do::' | |||||
1003 |
|
1003 | |||
1004 | %gui wx |
|
1004 | %gui wx | |
1005 |
|
1005 | |||
1006 |
For information on IPython's Matplotlib integration (and the `` |
|
1006 | For information on IPython's Matplotlib integration (and the ``matplotlib`` | |
1007 | see :ref:`this section <matplotlib_support>`. |
|
1007 | mode) see :ref:`this section <matplotlib_support>`. | |
1008 |
|
1008 | |||
1009 | For developers that want to use IPython's GUI event loop integration in the |
|
1009 | For developers that want to use IPython's GUI event loop integration in the | |
1010 | form of a library, these capabilities are exposed in library form in the |
|
1010 | form of a library, these capabilities are exposed in library form in the | |
@@ -1039,7 +1039,7 b' PyQt and PySide' | |||||
1039 |
|
1039 | |||
1040 | .. attempt at explanation of the complete mess that is Qt support |
|
1040 | .. attempt at explanation of the complete mess that is Qt support | |
1041 |
|
1041 | |||
1042 |
When you use ``--gui=qt`` or ``-- |
|
1042 | When you use ``--gui=qt`` or ``--matplotlib=qt``, IPython can work with either | |
1043 | PyQt4 or PySide. There are three options for configuration here, because |
|
1043 | PyQt4 or PySide. There are three options for configuration here, because | |
1044 | PyQt4 has two APIs for QString and QVariant - v1, which is the default on |
|
1044 | PyQt4 has two APIs for QString and QVariant - v1, which is the default on | |
1045 | Python 2, and the more natural v2, which is the only API supported by PySide. |
|
1045 | Python 2, and the more natural v2, which is the only API supported by PySide. | |
@@ -1057,11 +1057,11 b' PyQt4 to use its v2 API. So if ``QT_API=pyside`` PySide will be used,' | |||||
1057 | and if ``QT_API=pyqt`` then PyQt4 will be used *with the v2 API* for |
|
1057 | and if ``QT_API=pyqt`` then PyQt4 will be used *with the v2 API* for | |
1058 | QString and QVariant, so ETS codes like MayaVi will also work with IPython. |
|
1058 | QString and QVariant, so ETS codes like MayaVi will also work with IPython. | |
1059 |
|
1059 | |||
1060 |
If you launch IPython in |
|
1060 | If you launch IPython in matplotlib mode with ``ipython --matplotlib=qt``, | |
1061 |
will ask matplotlib which Qt library to use (only if QT_API is |
|
1061 | then IPython will ask matplotlib which Qt library to use (only if QT_API is | |
1062 |
the 'backend.qt4' rcParam. If matplotlib is version 1.0.1 or |
|
1062 | *not set*), via the 'backend.qt4' rcParam. If matplotlib is version 1.0.1 or | |
1063 |
IPython will always use PyQt4 without setting the v2 APIs, since |
|
1063 | older, then IPython will always use PyQt4 without setting the v2 APIs, since | |
1064 | PyQt nor PySide work. |
|
1064 | neither v2 PyQt nor PySide work. | |
1065 |
|
1065 | |||
1066 | .. warning:: |
|
1066 | .. warning:: | |
1067 |
|
1067 | |||
@@ -1084,7 +1084,8 b' PyGTK, PyQt4 and wxPython. It also provides a number of commands useful for' | |||||
1084 | scientific computing, all with a syntax compatible with that of the popular |
|
1084 | scientific computing, all with a syntax compatible with that of the popular | |
1085 | Matlab program. |
|
1085 | Matlab program. | |
1086 |
|
1086 | |||
1087 |
To start |
|
1087 | To start IPython with matplotlib support, use the ``--matplotlib`` switch. If | |
|
1088 | IPython is already running, you can run the ``%matplotlib`` magic. If no | |||
1088 | arguments are given, IPython will automatically detect your choice of |
|
1089 | arguments are given, IPython will automatically detect your choice of | |
1089 | matplotlib backend. You can also request a specific backend with |
|
1090 | matplotlib backend. You can also request a specific backend with | |
1090 | ``%matplotlib backend``, where ``backend`` must be one of: 'tk', 'qt', 'wx', |
|
1091 | ``%matplotlib backend``, where ``backend`` must be one of: 'tk', 'qt', 'wx', |
General Comments 0
You need to be logged in to leave comments.
Login now