Skip to content

A Quarto filter to format the python code using black code formatter

License

Notifications You must be signed in to change notification settings

shafayetShafee/black-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Black-formatter Extension For Quarto

A Quarto filter to format the python code using black

Installing

quarto add shafayetShafee/black-formatter

This will install the extension under the _extensions subdirectory. If you're using version control, you will want to check in this directory.

Using

Add the filter in your quarto document

---
filters:
  - black-formatter
---

Example

Here is the source code for a minimal example: example.qmd and view the rendered output with black-formatted code here