IPython 4.0 on Python 3.4 & Windows 10 - Status Update #2
Viktor Ransmayr <[email protected]> Fri, 21 Aug 2015 22:57:00 +0200
| Newsgroups | gmane.comp.python.ipython.user |
|---|---|
| Message-ID | <CAAeSrGLUKczFJermuruwe99JgpvS+vUhCYQh8thaxrmQRz=G0Q@mail.gmail.com> |
--===============0053291862==
Content-Type: multipart/alternative; boundary=001a113eb35e51a3f9051dd88272
--001a113eb35e51a3f9051dd88272
Content-Type: text/plain; charset=UTF-8
Here's a follow-up to my earlier mail. - Usage of 'ipython qtconsole' and
'ipython --gui=qt5' do not work as advertized:
<Log-#2>
PS C:\Users\Viktor> ipython --help
=========
IPython
=========
Tools for Interactive Computing in Python
=========================================
A Python shell with automatic history (input and output), dynamic object
introspection, easier configuration, command completion, access to the
system shell and more. IPython can also be embedded in running
programs.
Usage
ipython [subcommand] [options] [-c cmd | -m mod | file] [--] [arg] ...
[Snip]
--gui=<CaselessStrEnum> (InteractiveShellApp.gui)
Default: None
Choices: ('glut', 'gtk', 'gtk3', 'osx', 'pyglet', 'qt', 'qt5', 'tk',
'wx')
Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3',
'osx',
'pyglet', 'qt', 'qt5', 'tk', 'wx').
[Snip]
--profile-dir=<Unicode> (ProfileDir.location)
Default: ''
Set the profile location directly. This overrides the logic used by the
`profile` option.
To see all available configurables, use `--help-all`
Examples
--------
[Snip]
ipython qtconsole # start the qtconsole GUI application
ipython help qtconsole # show the help for the qtconsole subcmd
[Snip]
ipython nbconvert # convert notebooks to/from other formats
PS C:\Users\Viktor> ipython qtconsole
Traceback (most recent call last):
File "c:\python34\lib\runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "c:\python34\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python34\Scripts\ipython.exe\__main__.py", line 9, in <module>
File "c:\python34\lib\site-packages\IPython\__init__.py", line 118, in
start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "c:\python34\lib\site-packages\traitlets\config\application.py",
line 591, in launch_instance
app.initialize(argv)
File "<string>", line 2, in initialize
File "c:\python34\lib\site-packages\traitlets\config\application.py",
line 75, in catch_config_error
return method(app, *args, **kwargs)
File "c:\python34\lib\site-packages\IPython\terminal\ipapp.py", line 305,
in initialize
super(TerminalIPythonApp, self).initialize(argv)
File "<string>", line 2, in initialize
File "c:\python34\lib\site-packages\traitlets\config\application.py",
line 75, in catch_config_error
return method(app, *args, **kwargs)
File "c:\python34\lib\site-packages\IPython\core\application.py", line
386, in initialize
self.parse_command_line(argv)
File "c:\python34\lib\site-packages\IPython\terminal\ipapp.py", line 300,
in parse_command_line
return super(TerminalIPythonApp, self).parse_command_line(argv)
File "<string>", line 2, in parse_command_line
File "c:\python34\lib\site-packages\traitlets\config\application.py",
line 75, in catch_config_error
return method(app, *args, **kwargs)
File "c:\python34\lib\site-packages\traitlets\config\application.py",
line 487, in parse_command_line
return self.initialize_subcommand(subc, subargv)
File "<string>", line 2, in initialize_subcommand
File "c:\python34\lib\site-packages\traitlets\config\application.py",
line 75, in catch_config_error
return method(app, *args, **kwargs)
File "c:\python34\lib\site-packages\traitlets\config\application.py",
line 418, in initialize_subcommand
subapp = import_item(subapp)
File "c:\python34\lib\site-packages\ipython_genutils\importstring.py",
line 31, in import_item
module = __import__(package, fromlist=[obj])
ImportError: No module named 'qtconsole'
PS C:\Users\Viktor> ipython --gui=qt5
WARNING: Readline services not available or not loaded.
WARNING: Proper color support under MS Windows requires the pyreadline
library.
You can find it at:
http://ipython.org/pyreadline.html
Defaulting color scheme to 'NoColor'
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64
bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
[TerminalIPythonApp] WARNING | Eventloop or matplotlib integration failed.
Is matplotlib installed?
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
c:\python34\lib\site-packages\IPython\terminal\interactiveshell.py in
enable_gui(gui, app)
305 from IPython.lib.inputhook import enable_gui as
real_enable_gui
306 try:
--> 307 return real_enable_gui(gui, app)
308 except ValueError as e:
309 raise UsageError("%s" % e)
c:\python34\lib\site-packages\IPython\lib\inputhook.py in enable_gui(self,
gui, app)
248 self._current_gui = gui
249
--> 250 app = gui_hook.enable(app)
251 if app is not None:
252 app._in_event_loop = True
c:\python34\lib\site-packages\IPython\lib\inputhook.py in enable(self, app)
387 def enable(self, app=None):
388 os.environ['QT_API'] = 'pyqt5'
--> 389 return Qt4InputHook.enable(self, app)
390
391
c:\python34\lib\site-packages\IPython\lib\inputhook.py in enable(self, app)
364 app = QtGui.QApplication(sys.argv)
365 """
--> 366 from IPython.lib.inputhookqt4 import create_inputhook_qt4
367 app, inputhook_qt4 = create_inputhook_qt4(self.manager, app)
368 self.manager.set_inputhook(inputhook_qt4)
c:\python34\lib\site-packages\IPython\lib\inputhookqt4.py in <module>()
22
23 from IPython.core.interactiveshell import InteractiveShell
---> 24 from IPython.external.qt_for_kernel import QtCore, QtGui
25 from IPython.lib.inputhook import allow_CTRL_C, ignore_CTRL_C,
stdin_ready
26
c:\python34\lib\site-packages\IPython\external\qt_for_kernel.py in
<module>()
81
82 else: # use ETS variable
---> 83 from IPython.external.qt import QtCore, QtGui, QtSvg, QT_API
ImportError: No module named 'IPython.external.qt'
In [1]: quit()
PS C:\Users\Viktor>
</Log#2>
Any feedback or ideas?
With kind regards,
Viktor
--001a113eb35e51a3f9051dd88272
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div><div><div><div><div>Here's a follow-up to my earl=
ier mail. - Usage of 'ipython qtconsole' and 'ipython --gui=3Dq=
t5' do not work as advertized:<br><br></div><Log-#2><br><br>PS C:=
\Users\Viktor> ipython --help<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>=C2=A0IP=
ython<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D<br><br>Tools for Interactive Computing=
in Python<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br><br>=C2=
=A0=C2=A0=C2=A0 A Python shell with automatic history (input and output), d=
ynamic object<br>=C2=A0=C2=A0=C2=A0 introspection, easier configuration, co=
mmand completion, access to the<br>=C2=A0=C2=A0=C2=A0 system shell and more=
.=C2=A0 IPython can also be embedded in running programs.<br><br>Usage<br><=
br>=C2=A0=C2=A0=C2=A0 ipython [subcommand] [options] [-c cmd | -m mod | fil=
e] [--] [arg] ...<br><br>[Snip]<br><br>--gui=3D<CaselessStrEnum> (Int=
eractiveShellApp.gui)<br>=C2=A0=C2=A0=C2=A0 Default: None<br>=C2=A0=C2=A0=
=C2=A0 Choices: ('glut', 'gtk', 'gtk3', 'osx=
9;, 'pyglet', 'qt', 'qt5', 'tk', 'wx=
9;)<br>=C2=A0=C2=A0=C2=A0 Enable GUI event loop integration with any of (&#=
39;glut', 'gtk', 'gtk3', 'osx',<br>=C2=A0=C2=A0=
=C2=A0 'pyglet', 'qt', 'qt5', 'tk', 'wx=
').<br><br>[Snip]<br><br>--profile-dir=3D<Unicode> (ProfileDir.lo=
cation)<br>=C2=A0=C2=A0=C2=A0 Default: ''<br>=C2=A0=C2=A0=C2=A0 Set=
the profile location directly. This overrides the logic used by the<br>=C2=
=A0=C2=A0=C2=A0 `profile` option.<br><br>To see all available configurables=
, use `--help-all`<br><br>Examples<br>--------<br><br>[Snip]<br><br>=C2=A0=
=C2=A0=C2=A0 ipython qtconsole=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 # start the qtconsole GUI application<br>=C2=A0=C2=A0=C2=A0 ipyth=
on help qtconsole=C2=A0=C2=A0=C2=A0=C2=A0 # show the help for the qtconsole=
subcmd<br><br></div><div>[Snip]<br><br></div><div>=C2=A0=C2=A0=C2=A0 ipyth=
on nbconvert=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # =
convert notebooks to/from other formats<br><br>PS C:\Users\Viktor> ipyth=
on qtconsole<br>Traceback (most recent call last):<br>=C2=A0 File "c:\=
python34\lib\runpy.py", line 170, in _run_module_as_main<br>=C2=A0=C2=
=A0=C2=A0 "__main__", mod_spec)<br>=C2=A0 File "c:\python34\=
lib\runpy.py", line 85, in _run_code<br>=C2=A0=C2=A0=C2=A0 exec(code, =
run_globals)<br>=C2=A0 File "C:\Python34\Scripts\ipython.exe\__main__.=
py", line 9, in <module><br>=C2=A0 File "c:\python34\lib\si=
te-packages\IPython\__init__.py", line 118, in start_ipython<br>=C2=A0=
=C2=A0=C2=A0 return launch_new_instance(argv=3Dargv, **kwargs)<br>=C2=A0 Fi=
le "c:\python34\lib\site-packages\traitlets\config\application.py"=
;, line 591, in launch_instance<br>=C2=A0=C2=A0=C2=A0 app.initialize(argv)<=
br>=C2=A0 File "<string>", line 2, in initialize<br>=C2=A0 =
File "c:\python34\lib\site-packages\traitlets\config\application.py&qu=
ot;, line 75, in catch_config_error<br>=C2=A0=C2=A0=C2=A0 return method(app=
, *args, **kwargs)<br>=C2=A0 File "c:\python34\lib\site-packages\IPyth=
on\terminal\ipapp.py", line 305, in initialize<br>=C2=A0=C2=A0=C2=A0 s=
uper(TerminalIPythonApp, self).initialize(argv)<br>=C2=A0 File "<st=
ring>", line 2, in initialize<br>=C2=A0 File "c:\python34\lib\=
site-packages\traitlets\config\application.py", line 75, in catch_conf=
ig_error<br>=C2=A0=C2=A0=C2=A0 return method(app, *args, **kwargs)<br>=C2=
=A0 File "c:\python34\lib\site-packages\IPython\core\application.py&qu=
ot;, line 386, in initialize<br>=C2=A0=C2=A0=C2=A0 self.parse_command_line(=
argv)<br>=C2=A0 File "c:\python34\lib\site-packages\IPython\terminal\i=
papp.py", line 300, in parse_command_line<br>=C2=A0=C2=A0=C2=A0 return=
super(TerminalIPythonApp, self).parse_command_line(argv)<br>=C2=A0 File &q=
uot;<string>", line 2, in parse_command_line<br>=C2=A0 File &quo=
t;c:\python34\lib\site-packages\traitlets\config\application.py", line=
75, in catch_config_error<br>=C2=A0=C2=A0=C2=A0 return method(app, *args, =
**kwargs)<br>=C2=A0 File "c:\python34\lib\site-packages\traitlets\conf=
ig\application.py", line 487, in parse_command_line<br>=C2=A0=C2=A0=C2=
=A0 return self.initialize_subcommand(subc, subargv)<br>=C2=A0 File "&=
lt;string>", line 2, in initialize_subcommand<br>=C2=A0 File "=
c:\python34\lib\site-packages\traitlets\config\application.py", line 7=
5, in catch_config_error<br>=C2=A0=C2=A0=C2=A0 return method(app, *args, **=
kwargs)<br>=C2=A0 File "c:\python34\lib\site-packages\traitlets\config=
\application.py", line 418, in initialize_subcommand<br>=C2=A0=C2=A0=
=C2=A0 subapp =3D import_item(subapp)<br>=C2=A0 File "c:\python34\lib\=
site-packages\ipython_genutils\importstring.py", line 31, in import_it=
em<br>=C2=A0=C2=A0=C2=A0 module =3D __import__(package, fromlist=3D[obj])<b=
r>ImportError: No module named 'qtconsole'<br>PS C:\Users\Viktor>=
; ipython --gui=3Dqt5<br>WARNING: Readline services not available or not lo=
aded.<br>WARNING: Proper color support under MS Windows requires the pyread=
line library.<br>You can find it at:<br><a href=3D"http://ipython.org/pyrea=
dline.html">http://ipython.org/pyreadline.html</a><br><br>Defaulting color =
scheme to 'NoColor'<br>Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 20=
15, 22:44:40) [MSC v.1600 64 bit (AMD64)]<br>Type "copyright", &q=
uot;credits" or "license" for more information.<br><br>IPyth=
on 4.0.0 -- An enhanced Interactive Python.<br>?=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 -> Introduction and overview of IPython's feat=
ures.<br>%quickref -> Quick reference.<br>help=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 -> Python's own help system.<br>object?=C2=A0=C2=A0 -> Det=
ails about 'object', use 'object??' for extra details.<br>[=
TerminalIPythonApp] WARNING | Eventloop or matplotlib integration failed. I=
s matplotlib installed?<br>------------------------------------------------=
---------------------------<br>ImportError=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Tr=
aceback (most recent call last)<br>c:\python34\lib\site-packages\IPython\te=
rminal\interactiveshell.py in enable_gui(gui, app)<br>=C2=A0=C2=A0=C2=A0 30=
5=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from IPython.lib.inputhoo=
k import enable_gui as real_enable_gui<br>=C2=A0=C2=A0=C2=A0 306=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 try:<br>--> 307=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return real_enabl=
e_gui(gui, app)<br>=C2=A0=C2=A0=C2=A0 308=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 except ValueError as e:<br>=C2=A0=C2=A0=C2=A0 309=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 raise Usage=
Error("%s" % e)<br><br>c:\python34\lib\site-packages\IPython\lib\=
inputhook.py in enable_gui(self, gui, app)<br>=C2=A0=C2=A0=C2=A0 248=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 self._current_gui =3D gui<br>=C2=
=A0=C2=A0=C2=A0 249<br>--> 250=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 app =3D gui_hook.enable(app)<br>=C2=A0=C2=A0=C2=A0 251=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if app is not None:<br>=C2=A0=C2=A0=C2=
=A0 252=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 app._in_event_loop =3D True<br><br>c:\python34\lib\site-packages\IPy=
thon\lib\inputhook.py in enable(self, app)<br>=C2=A0=C2=A0=C2=A0 387=C2=A0=
=C2=A0=C2=A0=C2=A0 def enable(self, app=3DNone):<br>=C2=A0=C2=A0=C2=A0 388=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 os.environ['QT_API'=
;] =3D 'pyqt5'<br>--> 389=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 return Qt4InputHook.enable(self, app)<br>=C2=A0=C2=A0=C2=A0 390<b=
r>=C2=A0=C2=A0=C2=A0 391<br><br>c:\python34\lib\site-packages\IPython\lib\i=
nputhook.py in enable(self, app)<br>=C2=A0=C2=A0=C2=A0 364=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 app =3D QtGui.QAp=
plication(sys.argv)<br>=C2=A0=C2=A0=C2=A0 365=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 """<br>--> 366=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 from IPython.lib.inputhookqt4 import create_inputh=
ook_qt4<br>=C2=A0=C2=A0=C2=A0 367=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 app, inputhook_qt4 =3D create_inputhook_qt4(self.manager, app)<br>=
=C2=A0=C2=A0=C2=A0 368=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 self=
.manager.set_inputhook(inputhook_qt4)<br><br>c:\python34\lib\site-packages\=
IPython\lib\inputhookqt4.py in <module>()<br>=C2=A0=C2=A0=C2=A0=C2=A0=
22<br>=C2=A0=C2=A0=C2=A0=C2=A0 23 from IPython.core.interactiveshell impor=
t InteractiveShell<br>---> 24 from IPython.external.qt_for_kernel import=
QtCore, QtGui<br>=C2=A0=C2=A0=C2=A0=C2=A0 25 from IPython.lib.inputhook im=
port allow_CTRL_C, ignore_CTRL_C, stdin_ready<br>=C2=A0=C2=A0=C2=A0=C2=A0 2=
6<br><br>c:\python34\lib\site-packages\IPython\external\qt_for_kernel.py in=
<module>()<br>=C2=A0=C2=A0=C2=A0=C2=A0 81<br>=C2=A0=C2=A0=C2=A0=C2=
=A0 82 else: # use ETS variable<br>---> 83=C2=A0=C2=A0=C2=A0=C2=A0 from =
IPython.external.qt import QtCore, QtGui, QtSvg, QT_API<br><br>ImportError:=
No module named 'IPython.external.qt'<br><br>In [1]: quit()<br>PS =
C:\Users\Viktor><br><br></div></Log#2><br><br></div>Any feedback o=
r ideas?<br><br></div>With kind regards,<br><br></div>Viktor<br><br></div>
--001a113eb35e51a3f9051dd88272--
--===============0053291862==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
IPython-User mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/ipython-user
--===============0053291862==--