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.

Black removing first character of the first code cell in nb

See original GitHub issue

Hi, I am using nbqa==0.5.3 and black==20.8b1 and have the following notebook:

image

Here is a link to the notebook if that helps: https://drive.google.com/file/d/1EyZlfuoAbQycPYY92ysJ03-5lBuE0VlE/view?usp=sharing

As you can see the first cell has this special comment I need for another library I use. When I run nbqa black 00_core.ipynb --nbqa-mutate, I get the following output:

image

For some reason, it deletes the comment symbol. Any idea why this is happening or if this is expected? Any help would be greatly appreciated, thanks!

BTW, really like the project!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ncoop57commented, Dec 6, 2020

@MarcoGorelli just tried out 0.5.4 and its working perfectly!! Thanks for handling this so quickly!

2reactions
MarcoGorellicommented, Dec 6, 2020

@ncoop57 If you upgrade to nbqa 0.5.4 this should be fixed - please do let us know if you run into any further issues or have any ideas to improve this project! Thanks again for your excellent report!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Remove First Character from a Cell in Excel
1. Combine RIGHT and LEN to Remove the First Character from the Value. Using a combination of RIGHT and LEN is the most...
Read more >
Excel: Remove first or last characters (from left or right) - Ablebits
To delete the first character from a string, you can use either the REPLACE function or a combination of RIGHT and LEN functions....
Read more >
How to Remove the First Character from a String in Excel ...
One of the easiest wat to remove the first character from a text string in a cell is to replace it with a...
Read more >
How to remove first or last n characters from a cell or string in ...
1.2 Remove first N characters with user defined function · 1. Press Alt + F11 keys to enable Microsoft Visual Basic for Applications...
Read more >
Remove spaces from a given string - GeeksforGeeks
1) Iterate through all characters of given string, do following a) If current character is a space, then move all subsequent characters one ......
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