Issue
Is there an easy way of removing blank lines from IPython notebook?
I have picked up a habit of blank lines from web development and my fingers tend to hit enter automatically. This makes IPython notebooks less(by taking too much of my 14" screen), not more readable in most cases.
I was wondering if there is a way of automatically remove blank lines from the notebooks.
In notebooks, I think preferred way of splitting the code is by placing each separate method to a different cell.
Is commonly accepted style guide for notebooks or does PEP 8 apply as it is?
EDIT: I think question 2, Is answered by IPython docs. https://github.com/ipython/ipython/wiki/Dev:-Coding-style
Solution
If you are talking about deleting the empty line from jupyter notebook which opens in web browser then press Esc and D(keyboard key) 2 times.
You can also see all the keyboard shortcuts in the jupyter notebook file
by clicking on the help and then from dropdown on keyboard shortcuts.
Answered By - Muhammad Haseeb Khan
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.