dnanhkhoa / nb_black

A simple extension for Jupyter Notebook and Jupyter Lab to beautify Python code automatically using black.
MIT License
367 stars 41 forks source link

Does not work with older installations of black - illegible error #7

Closed kristomi closed 5 years ago

kristomi commented 5 years ago

I had black 18.9b0 installed, and in that version the FileMode() takes an argument. So the lab_black failed. After I upgraded black to the latest version (currently 19.3b0), everything worked fine again. Should you perhaps specify some requirements for this library so that this doesn't happen to other people?

dnanhkhoa commented 5 years ago

Thank you for your suggestion, I will specify the black version in the setup file to avoid this problem.