How to copy multiple input cells in Jupyter Notebook

前端 未结 5 1457
别跟我提以往
别跟我提以往 2021-02-05 05:12

Basically I want to copy (Ctrl+C) only the code portions from multiple cells without also copying the output or the In[1]: and Out[1]:

What is

5条回答
  •  独厮守ぢ
    2021-02-05 06:16

    In jupyter you can copy several cells or the content of one cell. If you follow @BenWS comment you can copy several cells, and if you do kernel > restart & clear outputs beforehand you woult not get the [out]. Shortcut is C for copy cell and V shift + V to paste below / above.

    However if you intend to copy several cells content, you should merge then before by select them and shift + M and then you can copy paste with ctrl + C.

提交回复
热议问题