IPython: Simplify code

IPython 6.5 is the first version that is Python 3.7 compatible.
https://ipython.readthedocs.io/en/stable/whatsnew/version6.html#ipython-6-5-0
3 jobs for master in 2 minutes and 49 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #17084
run-appdata

00:00:04

passed #17083
run-tests

00:02:35

 
  Build
passed #17085
run-build

00:00:08