Format on save: add two blank lines above code cells
See original GitHub issueI’d like interactive files to always have two empty lines above each code cell (except maybe following imports since isort
forces a single line there). On save, this
# %%
import numpy as np
# %%
arr = np.arange(20)
# %%
print(arr)
# %%
arr.reshape(4, 5)
should turn into
# %%
import numpy as np
# %%
arr = np.arange(20)
# %%
print(arr)
# %%
arr.reshape(4, 5)
Could this become part of the Python (or Jupyter) extension?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Fastest ways to insert multiple rows in Excel - Ablebits
Pick one or several rows where the blanks will appear. To do this, select the destination cells and use the Shift + Space...
Read more >Create two blank lines in Markdown - Stack Overflow
Markdown treats multiple blank lines as one blank line, you could pre tag to contain blank lines. As markdown inside pre block is...
Read more >How To Insert A Blank Row At Each Change In A ... - YouTube
In a previous post I talked about how to insert a line at each change in a column of a table or data...
Read more >Insert Blank Row After Every Data Row In Excel- Excel Tip
Learn how to quickly insert blank rows in between data rows in Excel. No macros, no formulas, here is a really quick way...
Read more >How to insert blank rows when value changes in Excel?
Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more... Extract Text, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for the suggestion! We have marked this issue as “needs decision” to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision.
Thanks for the suggestion! We talked about it with the team and we have unfortunately decided we will not be moving forward with this idea. We think there isn’t an enough widespread need for this to warrant the maintenance cost for the feature.