From d700870e2e23a67db22871a752a9974f64140fb8 Mon Sep 17 00:00:00 2001 From: stonebig Date: Sun, 14 May 2023 23:34:31 +0200 Subject: [PATCH] Update Readme and docs with latest supported Qt versions (#580) Co-authored-by: Carlos Cordoba --- README.md | 4 +--- docs/source/installation.rst | 25 +++++++++---------------- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 0ce7a4d2..963c145c 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,7 @@ and more. ![qtconsole](https://raw.githubusercontent.com/jupyter/qtconsole/master/docs/source/_images/qtconsole.png) ## Install Qtconsole -The Qtconsole requires Python bindings for Qt, such as [PyQt5](http://www.riverbankcomputing.com/software/pyqt/intro), -[PyQt4](https://www.riverbankcomputing.com/software/pyqt/download), -or [PySide](http://pyside.github.io/docs/pyside). +The Qtconsole requires Python bindings for Qt, such as [PyQt6](https://pypi.org/project/PyQt6/), [PySide6](https://pypi.org/project/PySide6/), [PyQt5](https://pypi.org/project/PyQt5/) or [PySide2](https://pypi.org/project/PySide2/). Although [pip](https://pypi.python.org/pypi/pip) and [conda](http://conda.pydata.org/docs) may be used to install the Qtconsole, conda diff --git a/docs/source/installation.rst b/docs/source/installation.rst index e36719a9..898a334d 100644 --- a/docs/source/installation.rst +++ b/docs/source/installation.rst @@ -1,15 +1,14 @@ Installation ============ The Qt console requires Qt, such as -`PyQt5 `_, -`PyQt4 `_, or -`PySide `_. +`PyQt6 `_, +`PySide6 `_, +`PyQt5 `_, +`PySide2 `_. Although `pip `_ and `conda `_ may be used to install the Qt console, -conda is simpler to use since it automatically installs PyQt. Alternatively, -qtconsole installation with pip needs additional steps since pip cannot install -the Qt requirement. +conda is simpler to use since it automatically installs PyQt. Install using conda ------------------- @@ -28,27 +27,21 @@ To install:: pip install qtconsole -.. important:: - - Make sure that Qt is installed. Unfortunately, Qt cannot be - installed using pip. The next section gives instructions on installing Qt. - Installing Qt (if needed) ------------------------- We recommend installing PyQt with `conda `_:: conda install pyqt -or with a system package manager. For Windows, PyQt binary packages may be -used. +or with pip:: + + pip install PyQt5 For example with Linux Debian's system package manager, use:: sudo apt-get install python3-pyqt5 # PyQt5 on Python 3 - sudo apt-get install python3-pyqt4 # PyQt4 on Python 3 - sudo apt-get install python-qt4 # PyQt4 on Python 2 -.. seealso:: +See also:: `Installing Jupyter `_ The Qt console is part of the Jupyter ecosystem.