nbcommands
nbcommands copied to clipboard
Line number and execution count as comments
trafficstars
Line number and execution count make copying lines harder from terminal when they are inline. Moving them to a line above as a code comment makes it easier to copy lines of code output on a terminal
This is also what nbconvert does when converting notebook to a python file
Copying the code from a notebook looks like a secondary use-case here, viewing the contents being the primary. Maybe giving the user a flag like --hide-cells or --copy which only prints the code and not In [1]: would be better than hardcoding the code comment behavior you described. What do you think?