title: [matplotlib]: use of ginput on Jupyter %matplotlib notebook
body: <p>I would like to use the matplotlib method "ginput" on Jupyter, with "%matplotlib notebook" but it doesn't work. Here you see the <a href="http://matplotlib.org/1.5.1/examples/pylab_examples/ginput_demo.html" rel="nofollow noreferrer">ginput example</a> .
  If I copy and past that code on Spyder then it works, but if I paste it on Jupyter then I get the following message of error</p>
  
  <pre><code>Please click
  ---------------------------------------------------------------------------
  NotImplementedError                       Traceback (most recent call last)
  &lt;ipython-input-24-50d3ac899b10&gt; in &lt;module&gt;()
        7 plt.plot(t, np.sin(t))
        8 print("Please click")
  ----&gt; 9 x = plt.ginput(3)
       10 print("clicked", x)
       11 plt.show()
  
  C:\Users\fedel\Anaconda2c\lib\site-packages\matplotlib\pyplot.pyc in ginput(*args, **kwargs)
      709     If *timeout* is negative, does not timeout.
      710     """
  --&gt; 711     return gcf().ginput(*args, **kwargs)
      712 
      713 
  
  C:\Users\fedel\Anaconda2c\lib\site-packages\matplotlib\figure.pyc in ginput(self, n, timeout, show_clicks, mouse_add, mouse_pop, mouse_stop)
     1663                                                   mouse_stop=mouse_stop)
     1664         return blocking_mouse_input(n=n, timeout=timeout,
  -&gt; 1665                                     show_clicks=show_clicks)
     1666 
     1667     def waitforbuttonpress(self, timeout=-1):
  
  C:\Users\fedel\Anaconda2c\lib\site-packages\matplotlib\blocking_input.pyc in __call__(self, n, timeout, show_clicks)
      292         self.clicks = []
      293         self.marks = []
  --&gt; 294         BlockingInput.__call__(self, n=n, timeout=timeout)
      295 
      296         return self.clicks
  
  C:\Users\fedel\Anaconda2c\lib\site-packages\matplotlib\blocking_input.pyc in __call__(self, n, timeout)
      115         try:
      116             # Start event loop
  --&gt; 117             self.fig.canvas.start_event_loop(timeout=timeout)
      118         finally:  # Run even on exception like ctrl-c
      119             # Disconnect the callbacks
  
  C:\Users\fedel\Anaconda2c\lib\site-packages\matplotlib\backends\backend_nbagg.pyc in start_event_loop(self, timeout)
      192 
      193     def start_event_loop(self, timeout):
  --&gt; 194         FigureCanvasBase.start_event_loop_default(self, timeout)
      195 
      196     def stop_event_loop(self):
  
  C:\Users\fedel\Anaconda2c\lib\site-packages\matplotlib\backend_bases.pyc in start_event_loop_default(self, timeout)
     2443         self._looping = True
     2444         while self._looping and counter * timestep &lt; timeout:
  -&gt; 2445             self.flush_events()
     2446             time.sleep(timestep)
     2447             counter += 1
  
  C:\Users\fedel\Anaconda2c\lib\site-packages\matplotlib\backend_bases.pyc in flush_events(self)
     2388         backends with GUIs.
     2389         """
  -&gt; 2390         raise NotImplementedError
     2391 
     2392     def start_event_loop(self, timeout):
  
  NotImplementedError: 
  </code></pre>
  
  <p>what do you suggest me to make the "ginput" method working on Jupyter?</p>