I know that for jupyter notebooks and jupyter lab, there are available code formatter extensions such as nb_black
or blackcellmagic
. However when I installed them, it doesn't seem to work on google colab.
Do you know if there are any native option in colab or an extension that formats code (pep8 compliant)?
!black '/content/drive/MyDrive/YOUR_PATH/YOUR_NOTEBOOK.ipynb'
) as my path contained a folder that had a space in its name. – Laevogyrate