Tutorial Jupyter Qtconsole

Author: Victor Negîrneac Last update: 2020-03-23

As of 2020-03-23 we have been experiencing several crush issues in iPython specially on Windows 10. This tutorial is inteded to introduce you to Jupyter Qtconsole, an alternative to the standard iPython interface.

For more than a week we didn't face crushes using Qtconsole, plus it has some nice features. The idea is to run all experiments from this GUI console-like application.

From Qtconsole github: "The Qtconsole is a very lightweight application that largely feels like a terminal, but provides a number of enhancements only possible in a GUI, such as inline figures, proper multiline editing with syntax highlighting, graphical calltips, and more."

Install

Installing should be as simple as

pip install qtconsole

For more details check the project's github

Running the application

# Launch it from the terminal:
jupyter qtconsole

Getting started quick tips

  • New line in same cell: ctrl+enter
  • If you select text and copy it, by default it will not include the annoying ...: when copying multiple lines
  • You can change the syntax style: From menu, View --> Syntax Style
  • Remove line under the cursor: ctrl+u
  • Clear all lines on current cell: esc
  • You can safely paste with ctrl+v (even with multiline), paste and %paste do not work and there is no need for them
  • To execute current cell with multiples lines: enter (or you might need shift+enter)

Known issues

  • q and f to interrupt MC experiments does not work (yet), use ctrl+c if you need to stop the experiment, this raises a KeyboardInterrupt, not known if this can cause any issues (e.g. corrupted datafiles)
  • Mind that ctrl+c works as KeyboardInterrupt, use the mouse to copy when the experiment is running (or always and stay safe)