Code fomatting in Google Colab like autopep8 or black for Jupyter

Viewed 1469

I just use Google Colab for research and to learn machine learning, but there is one thing I still don't know how to do. How to format code in Google Colab? In this case I mean like autopep8 or black on Jupyter notebooks, I always mess with my code, for example:

x=1.223333433
print("%3f"%x)

will be

x = 1.223333433
print("%3f" % x)

So a code formatter would be awesome, thanks a lot.

0 Answers
Related