Copy data from a Jupyter laptop

I would like to copy and paste data from a Jupyter laptop. In the following example, which includes elements Inand Out.

When I try to copy this data, I currently cannot select the elements Inand Out, since they are not contained in the cell data.

In [23]:
df.index.slice_indexer(start_remove, end_remove)

Out[23]:
slice(36, 85, None)

This image shows the elements Inand Out, as well as the cells. I want to copy and paste it all.

enter image description here

+2
source share
1 answer

Less ugly hack:

You can do this in the Inspection Tool console:

$('div.prompt').removeClass('prompt')

. prompt, div. , . , .


:

:

  • In [number]

- :

`<div class="prompt input_prompt">In&nbsp;[18]:</div>`
  1. prompt div. :

    <div class="input_prompt">In&nbsp;[18]:</div>

  2. Enter .

  3. I In [] .

  4. Voila! , .

  5. prompt .

+3

Source: https://habr.com/ru/post/1666629/


All Articles