Show More
@@ -511,7 +511,7 b' class KeyValueConfigLoader(CommandLineConfigLoader):' | |||||
511 | if raw == '--': |
|
511 | if raw == '--': | |
512 | # don't parse arguments after '--' |
|
512 | # don't parse arguments after '--' | |
513 | # this is useful for relaying arguments to scripts, e.g. |
|
513 | # this is useful for relaying arguments to scripts, e.g. | |
514 |
# ipython -i foo.py -- |
|
514 | # ipython -i foo.py --matplotlib=qt -- args after '--' go-to-foo.py | |
515 | self.extra_args.extend(uargv[idx+1:]) |
|
515 | self.extra_args.extend(uargv[idx+1:]) | |
516 | break |
|
516 | break | |
517 |
|
517 |
@@ -1,6 +1,6 b'' | |||||
1 | """ Import Qt in a manner suitable for an IPython kernel. |
|
1 | """ Import Qt in a manner suitable for an IPython kernel. | |
2 |
|
2 | |||
3 |
This is the import used for the `gui=qt` or ` |
|
3 | This is the import used for the `gui=qt` or `matplotlib=qt` initialization. | |
4 |
|
4 | |||
5 | Import Priority: |
|
5 | Import Priority: | |
6 |
|
6 |
@@ -297,8 +297,8 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):' | |||||
297 | # warn and transform into current syntax |
|
297 | # warn and transform into current syntax | |
298 | argv = argv[:] # copy, don't clobber |
|
298 | argv = argv[:] # copy, don't clobber | |
299 | idx = argv.index('-pylab') |
|
299 | idx = argv.index('-pylab') | |
300 |
warn.warn("`-pylab` |
|
300 | warn.warn("`-pylab` and `--pylab` flags have been deprecated.\n" | |
301 | " Use `--pylab` instead, or `--pylab=foo` to specify a backend.") |
|
301 | " Use `--matplotlib=<backend>` and import pylab manually.") | |
302 | sub = '--pylab' |
|
302 | sub = '--pylab' | |
303 | if len(argv) > idx+1: |
|
303 | if len(argv) > idx+1: | |
304 | # check for gui arg, as in '-pylab qt' |
|
304 | # check for gui arg, as in '-pylab qt' |
@@ -4,7 +4,7 b" A Simple wx example to test IPython's event loop integration." | |||||
4 |
|
4 | |||
5 | To run this do: |
|
5 | To run this do: | |
6 |
|
6 | |||
7 |
In [5]: %gui wx # or start IPython with '--gui wx' |
|
7 | In [5]: %gui wx # or start IPython with '--gui wx' | |
8 |
|
8 | |||
9 | In [6]: %run gui-wx.py |
|
9 | In [6]: %run gui-wx.py | |
10 |
|
10 |
General Comments 0
You need to be logged in to leave comments.
Login now