Getting started is really easy:
- Import the
- Add an
onloadhandler to your <body> tag to boot Brython
- Write your code inside <script type=”text\python”> tags
Here’s how to use the translate function code from my previous post.
Note that the translation won’t work unless you set up your own account key on the Google Translate API. Drop me a line if you’d like an IP white-listed.
I’m sure there will be gotchas using Brython. I will spend some time investigating further.