Python Forum
Has anyone tried the module Black ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Has anyone tried the module Black ?
#1
https://black.readthedocs.io/en/stable/

Did anyone try this? I tried it through the command line ( black my_file.py ) and it made some format change on my file in open Notepad++ immediately. Pretty cool.
Reply
#2
I downloaded and tried it, I need to make a side by side comparison before I can comment.
I really try to be compliant with PEP8, so didn't notice any immediate change .
Reply
#3
I use black as code formatter in VS Code,see setup here.
Reply
#4
now if only it would use blackletter font.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#5
By the way, I installed Anaconda and black there but have no idea how to use it.
Reply
#6
do you use VSCode?
if so, do following:
  • choose file->Preferences->settings
  • Type python.formatting.provider in text window
  • Select black
Reply
#7
No, I used Spyder since I started following MIT Data Science course ( 6.00.2x) on EdX. But I still prefer Notepad++ because I can open it in a smaller window so that I can look at the video material and type into the editor at the same time. With Anaconda I have only a full-screen option.
Reply
#8
Got an answer on StackOverFlow from Spyder developer - it's not possible to use black yet, they will try to add it in version 4.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  black Skaperen 10 2,264 Oct-19-2022, 04:56 AM
Last Post: Skaperen
  Tools for black box and glass box (white box) testing Emekadavid 3 51,171 Jun-25-2020, 03:29 PM
Last Post: Emekadavid
  Huge black friday power supply sale at EVGA Larz60+ 0 2,090 Nov-21-2018, 08:06 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020