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.

Use "# %%" instead of "#%%" as default cell delimiter (or allow customization)

See original GitHub issue

By default the extension inserts #%% after executing the last cell in a file. This is also the documented cell delimiter. But it’s not compliant with flake8 and other popular python linters, which expect at least one whitespace after the #. In general, it’s not possible to configure these linters to ignore a specific pattern, but just to disable predefined rules. I understand that exploratory work often violates conventions and produces “write-only” code. But I believe that changing the default delimiter to # %% is a simple change that will keep flake8 from flooding the problems view. You could maybe offer the option to change this default delimiter, given that you already offer the option to change the delimiter regex (which by default is also compatible with # %%)…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
memeplexcommented, Sep 30, 2019

We’ll check telemetry first though to see how many people have changed the regex.

For all the hate that telemetry gets, it’s great that you can do that kind of “data-driven development”.

0reactions
IanMatthewHuffcommented, Oct 28, 2019

Validated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use "# %%" instead of "#%%" as default cell delimiter ... - GitHub
Use "# %%" instead of "#%%" as default cell delimiter (or allow customization) #2991.
Read more >
How to change Excel CSV delimiter to comma or semicolon
In the Customize Format dialog box, on the Numbers tab, type the character you want to use as the default CSV delimiter in...
Read more >
How do you change default delimiter in the Text Import in Excel?
In Windows XP, click the Regional Options tab, and then click Customize. Type a new separator in the List separator box. Click OK...
Read more >
How to open CSV files with the correct delimiter/separator
Select the CSV file that has the data clustered into one column. Select Delimited, then make sure the File Origin is Unicode UTF-8....
Read more >
How to Change the Text Delimiter in Excel | Smoak Signals
In this video I will show you how to change the default comma delimiter in Excel when making .csv (comma separated value) files....
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