title: cursor position requests (CPR) Warning in ipython %pylab via ssh
body: <p>I get an annoying warning that hangs my <code>ipython</code> session (connected by <code>ssh -X</code>) when the magic <code>%pylab</code> is called during startup.
  This is the line responsible:</p>
  
  <p><code>get_ipython().magic(u"%pylab")</code> </p>
  
  <p>in the ipython profile file </p>
  
  <p><code>~/.ipython/profile_default/startup/00-first.py</code></p>
  
  <p>This is what the commands look like</p>
  
  <pre><code>$ ssh -X myIP
  $ ipython
  
  Python 3.7.3 | packaged by conda-forge | (default, Jul  1 2019, 21:52:21) 
  Type 'copyright', 'credits' or 'license' for more information
  IPython 7.9.0 -- An enhanced Interactive Python. Type '?' for help.
  Using matplotlib backend: Qt5Agg
  Populating the interactive namespace from numpy and matplotlib
  
  #...hangs here for 10 seconds... and finally:
  WARNING: your terminal doesn't support cursor position requests (CPR).
  In [1]:
  </code></pre>
  
  <p>Strangely, if I remove the file and call <code>%pylab</code> within ipython, it still hangs for the same duration but with no warning shown.</p>
  
  <p>Can this be fixed?</p>
  
  <p>My install:</p>
  
  <pre><code>Python 3.7.3 
  IPython 7.2.0 
  matplotlib 3.1.1
  qt 5.12.5
  pyqt 5.12.3
  </code></pre>