How to copy multiple input cells in Jupyter Notebook

前端 未结 5 1550
别跟我提以往
别跟我提以往 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条回答
  •  猫巷女王i
    2021-02-05 06:13

    Open notebook dir as project in PyCharm, and then open the wanted ipynb file, select and copy all the source code, past into notepad++, replace "\r\n#%%\r\n\r\n" by null with extended search mode.

提交回复
热议问题