10

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.

Kevin Languasco
  • 2,318
  • 1
  • 14
  • 20
CODEforDREAM
  • 863
  • 1
  • 8
  • 24

0 Answers0