title: Copy data from Jupyter notebook
body: <p>I would like to copy and paste data from a Jupyter notebook.  As per the following example which includes the <code>In</code> and <code>Out</code> elements. </p>
  
  <p>When trying to copy this data I am currently unable to select the <code>In</code> and <code>Out</code> elements as these are not contained in the cell data.</p>
  
  <pre><code>In [23]:
  df.index.slice_indexer(start_remove, end_remove)
  
  Out[23]:
  slice(36, 85, None)
  </code></pre>
  
  <p>This image shows the <code>In</code> and <code>Out</code> elements as well as the cells.  I want to copy and paste all of this.</p>
  
  <p><a href="https://i.stack.imgur.com/2NMSD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2NMSD.jpg" alt="enter image description here"></a></p>