nbcommands icon indicating copy to clipboard operation
nbcommands copied to clipboard

Line number and execution count as comments

Open deepu-tp opened this issue 6 years ago • 1 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

deepu-tp avatar Nov 02 '19 01:11 deepu-tp

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?

vinayak-mehta avatar Jul 18 '20 12:07 vinayak-mehta