I want to use IPython Qt Console

What you need to run the IPython Qt Console

On Windows, there is a handy thing called WinPython that contains commonly used packages from the beginning, so IPython Qt Console does not need to add any packages. It can be used. On a Mac, you have to install the package yourself, so it's quite difficult to use it. When I try to launch the IPython Qt Console, I get an error message so I can see what packages I need.

$ ipython qtconsle
...
ImportError: 
    Could not load requested Qt binding. Please ensure that
    PyQt4 >= 4.7, PyQt5 or PySide >= 1.0.3 is available,
    and only one is imported per session.

All you need is PyQt4, PyQt5, or PySide.

Install PyQt5

First, try installing the latest PyQt5 by referring to the site below.

Set the environment variables required for PySide (Qt4) and PyQt (Qt5) It seems that PyQt5 cannot be installed with pip, so it needs to be installed with Homebrew.

Installing PyQt5 Official site

For the time being, when I check the dependent packages,

$ brew info pyqt5
...
==> Dependencies
Required: qt5 ✘, sip ✘

Install qt5 and sip, then install PyQt5.

$ brew install qt5
...
$ brew install sip
...
$ brew install pyqt5

Launch IPython Qt Console

When I try to start it again, this time I get another error.

$ ipython qtconsole
...
ImportError: No module named 'pygments'
$ pip install pygments
...
$ ipython qtconsole
...
ImportError: No module named 'zmq'
$ pip istall pyzmq
...
$ ipython qtconsole

I installed pygments and pyzmq with pip and finally started it.


I hope the Mac also has something like WinPython.

Recommended Posts

I want to use IPython Qt Console
I want to use R functions easily with ipython notebook
I want to output to the console coolly
I want to use jar from python
I want to use Linux on mac
How to use IPython
I want to use MATLAB feval with python
I want to use Temporary Directory with Python2
I want to use ceres solver from python
I don't want to use -inf with np.log
I want to use ip vrf with SONiC
I want to use the activation function Mish
How to use Qt Designer
I want to use self in Backpropagation (tf.custom_gradient) (tensorflow)
How to use IPython Notebook
I want to solve Sudoku (Sudoku)
I want to use OpenJDK 11 on Ubuntu Linux 18.04 LTS / 18.10
I want to use the R dataset in python
I want to use only the normalization process of SudachiPy
[Python] I want to use the -h option with argparse
I want to announce my graduation thesis on IPython Notebook
I want to use a virtual environment with jupyter notebook!
I want to use VS Code and Spyder without anaconda! !! !!
I want to understand systemd roughly
I want to scrape images to learn
I want to do ○○ with Pandas
I want to copy yolo annotations
I want to debug with Python
I don't tweet, but I want to use tweepy: just display the search results on the console
I want to use a wildcard that I want to shell with Python remove
I want to use shortcut translation like DeepL app on Linux
Comparison of GCP computing services [I want to use it serverless]
I want to use an external library with IBM Cloud Functions
I want to use both key and value of Python iterator
I really want to use GitHub Flavored Markdown (GFM) with Pelican!
I want to pin Spyder to the taskbar
I want to detect objects with OpenCV
I want to print in a comprehension
I want to scrape them all together.
I want to handle the rhyme part1
I want to know how LINUX works!
I want to blog with Jupyter Notebook
I want to handle the rhyme part3
I want to build a Python environment
I want to pip install with PythonAnywhere
I want to analyze logs with Python
I want to play with aws with python
I want to display the progress bar
I want to make an automation program!
How to use the IPython debugger (ipdb)
I want to embed Matplotlib in PySimpleGUI
I want to handle the rhyme part2
I want to develop Android apps on Android
I want CAPTCHA to say HIWAI words
I want to handle the rhyme part5
I wrote gxredis to use redis-py safely
I want to handle the rhyme part4
"CSI" that I want to teach beginners in interactive console application production
Tips for manipulating numpy.ndarray from c ++ -I want to use an iterator-
If you want to use NumPy, Pandas, Matplotlib, IPython, SciPy on Windows
I want to use the Django Debug Toolbar in my Ajax application