jupyter - how to comment out cells?

后端 未结 4 1279
粉色の甜心
粉色の甜心 2021-02-03 21:17

Is it possible to comment out whole cells in jupyter?

I need it for this case:

I have a lot of cells, and I want to run all of them, except for a few of them. I

4条回答
  •  南笙
    南笙 (楼主)
    2021-02-03 22:06

    I think the easiest thing will be to change the cell type to 'Markdown' with M when you don't want to run it and change back to 'Code' with Y when you do. In a short test I did, I did not lose my formatting when switching back and forth.

    I don't think you can select multiple cells at once.

提交回复
热议问题