Jun-03-2020, 11:38 AM
I have used the python code formatter nb_black. I have not used it in about a year. I have some python code that needs formtting. I am always a little unsure of the python format so I let nb_black do it. It usually works.
Now when I try to install nb_black using
pip install nb_black
I get the message that the file nb_black does not exist. However, I can stall nb-black. Notice the position change: the underscore now becomes a dash. I am not sure if they are the same. One works and the other does not. Neithr works today.
When I put the line
%load_ext nb-black
at the top of the program's code it does not do anything. Of course, as I said before, I installed it via
pip install nb-black.
What am I doing wrong? If there is a better python code formatter pleae let me know.
I am using a jupyter notebook on Ubuntu with python 3.7.7.
Any help appreciated. Thanks in advance.
Respectfully,
ErnestTBass
Now when I try to install nb_black using
pip install nb_black
I get the message that the file nb_black does not exist. However, I can stall nb-black. Notice the position change: the underscore now becomes a dash. I am not sure if they are the same. One works and the other does not. Neithr works today.
When I put the line
%load_ext nb-black
at the top of the program's code it does not do anything. Of course, as I said before, I installed it via
pip install nb-black.
What am I doing wrong? If there is a better python code formatter pleae let me know.
I am using a jupyter notebook on Ubuntu with python 3.7.7.
Any help appreciated. Thanks in advance.
Respectfully,
ErnestTBass