##// END OF EJS Templates
update parallel code for py3k...
update parallel code for py3k This is primarily tweaks of bytes/unicode, but other fixes include: * some integer division * added co_kwonlyargcount to code objects * a few places to handle map/range being objects non-copying numpy is disabled on py3k, because arrays are not reconstructed properly on the other side. This is because pyzmq always receives a byte array (memoryview.itemsize=1), which confuses numpy. With these changes, almost all parallel tests pass. Notable exceptions are: sync_imports, and MUX engine death.

File last commit:

r4149:272e128d
r4155:a82262e5
Show More
qt_for_kernel.py
12 lines | 385 B | text/x-python | PythonLexer
""" Import Qt in a manner suitable for an IPython kernel.
"""
import sys
# Older versions of matplotlib do not support PyQt4 v2 APIs or PySide, so we
# cannot go through the preferred mechanism.
matplotlib = sys.modules.get('matplotlib')
if matplotlib and matplotlib.__version__ <= '1.0.1':
from PyQt4 import QtCore, QtGui
else:
from IPython.external.qt import QtCore, QtGui