Here is a little suggestion: it would be nice to somehow differentiate two totally different use cases of comments:
- When user comments a meaningful line of code, which may somehow change following workbook workflow.
- When user adds just a line of text for clarification purpose only.
Here is why I think it might be quite important:
In the peace of code below I add some reminder for my future self about how the sklearn function works.
It causes recalculation of all cells below, which is not efficient and also may take a while. If every calculation takes for instance 20 mins the user will be really unhappy to wait for 20 more mins just because he/she added a comment in one of the first cells.
It is also worth to mention, that now all cells recalculate even if the user do not add/remove comment, but just edit it, which seems pretty redundant to me.