We have two options to add Python into a chrome extension: Method A: Include Brython in an iframe (requires server) Method B: Compile Python to Javascript using Rapydscript (best, serverless, pure extension.)