title: How do I get data from selected points in an offline plotly python jupyter notebook?
body: <p>Example code:</p>
  
  <pre><code>from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
  
  import plotly.graph_objs as go
  
  import numpy as np
  
  N = 30
  random_x = np.random.randn(N)
  random_y = np.random.randn(N)
  
  # Create a trace
  trace = go.Scatter(
      x = random_x,
      y = random_y,
      mode = 'markers'
  )
  
  data = [trace]
  
  # Plot and embed in ipython notebook!
  iplot(data, filename='basic-scatter')
  </code></pre>
  
  <p>[<img src="https://i.stack.imgur.com/6MR6H.png" alt="enter image description here">]</p>
  
  <p>How do I get a copy of the x,y data, or the indices from the selection?</p>