Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line number and execution count as comments #5

Open
deepu-tp opened this issue Nov 2, 2019 · 1 comment
Open

Line number and execution count as comments #5

deepu-tp opened this issue Nov 2, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@deepu-tp
Copy link
Contributor

deepu-tp commented Nov 2, 2019

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

@vinayak-mehta
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants