Sitemap
Halfdan Rump

Halfdan Rump

Connecting qtconsole to Jupyter Notebook

1 min readJul 24, 2019

I used to use Jupyter notebooks a lot, and I loved how qtconsole made it possible to combine the typical ipython workflow with tje notebook workflow.

Installing qtconsole

The instructions on the official jupyter qtconsole docs do not mention how to install qt on mac, so I’ll show you.

pip install qtconsole
pip install pyqt5

Also if you’re on mac you need to install qt, for instance like this

Get Halfdan Rump’s stories in your inbox

Join Medium for free to get updates from this writer.

brew install qt

A few years ago a console launch button would appear in the notebook, but it seems that doesn’t happen anymore. Or maybe I’m missing a step to do this. In any case, I found read here that you can simply use the magic

%qtconsole

to launch the qtconsole from within the notebook, like this:

Press enter or click to view image in full size
qtconsole is connected to the jupyter notebook!

Pretty neat!

--

--