IPython wrapper to format cell using black.
Project description
IPython magic command to format python code in cell using black.
What is the magic command?
%%black
Setup
Using pip
pip install blackcellmagic
Directly from the repository
git clone https://github.com/csurfer/blackcellmagic.git
python blackcellmagic/setup.py install
Load Extension in IPython
%load_ext blackcellmagic
Usage
# To have it formatted to black default length 88.
%%black
# To have it formatted to a particular line length.
%%black -l 79
%%black --line_length 79
Contributing
Bug Reports and Feature Requests
Please use issue tracker for reporting bugs or feature requests.
Development
Pull requests are most welcome.
Buy the developer a cup of coffee!
If you found the utility helpful you can buy me a cup of coffee using
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blackcellmagic-0.0.1.tar.gz
(2.9 kB
view hashes)