Black removing first character of the first code cell in nb
See original GitHub issueHi, I am using nbqa==0.5.3
and black==20.8b1
and have the following notebook:
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:
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:
- Created 3 years ago
- Comments:11 (2 by maintainers)
Top 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 >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
@MarcoGorelli just tried out 0.5.4 and its working perfectly!! Thanks for handling this so quickly!
@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!