Skip to content

Commit 4dbcd51

Browse files
committed
Update minimal required versions of IPython and pyzmq
1 parent be72293 commit 4dbcd51

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

spyderlib/ipythonconfig.py

+2-13
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,20 @@
88
IPython configuration variables needed by Spyder
99
"""
1010

11-
import os
12-
1311
from spyderlib.utils import programs
1412
from spyderlib import dependencies
1513
from spyderlib.baseconfig import _
1614

17-
# Don't use spyderlib.qt.PYQT5 to avoid importing Qt here
18-
PYQT5 = os.environ.get('QT_API', None) == 'pyqt5'
1915

20-
IPYTHON_REQVER = '>=1.0'
21-
ZMQ_REQVER = '>=2.1.11'
16+
IPYTHON_REQVER = '>=3.0'
17+
ZMQ_REQVER = '>=13.0.0'
2218

2319
dependencies.add("IPython", _("IPython Console integration"),
2420
required_version=IPYTHON_REQVER)
2521
dependencies.add("zmq", _("IPython Console integration"),
2622
required_version=ZMQ_REQVER)
2723

2824
def is_qtconsole_installed():
29-
# Only IPython 3+ is compatible with PyQt5, so this will avoid a
30-
# crash for us
31-
# TODO: Remove this once IPython 3 is released
32-
if programs.is_module_installed('IPython.qt', '<3.0') and PYQT5:
33-
return False
34-
35-
# Check if pyzmq is installed too, else, what's the point?
3625
pyzmq_installed = programs.is_module_installed('zmq', version=ZMQ_REQVER)
3726
pygments_installed = programs.is_module_installed('pygments')
3827
if programs.is_module_installed('IPython.qt') and pyzmq_installed \

0 commit comments

Comments
 (0)