question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Format on save: add two blank lines above code cells

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
karthiknadigcommented, Dec 4, 2020

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.

0reactions
luabudcommented, Feb 10, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found