Questions tagged [brython]

Brython is a browser-integrated Python engine.

Brython stands for Browser's Python. It's goal is to replace JavaScript with Python as the scripting language for web browsers. It is composed of a lightweight run-time translation layer that brings many of Python's syntax niceties directly to the browser, as simple as using a <script type="text/python"> tag.

Some possible uses are

  • Creating simple document elements,
  • Drag and drop elements
  • 3D navigation
  • Geolocation
  • Charts and graphs

For more examples visit the home page and refer to the gallery.

Brython is open source and the source code is available here. Documentation can be found at http://www.brython.info/doc/en/index.html.

108 questions
-2
votes
1 answer

How can I load a local library in Brython?

plot.html
user366312
  • 16,949
  • 65
  • 235
  • 452
-3
votes
1 answer

Simple Python code doesn't work with Brython

I've started learning Python (again). This simple code with a cycle works by itself. But when I put it into a Brython it doesn't. No part of it works until I comment out everything, but simple alert() commands. I've tried just a "i+=1" cycle —…
1 2 3 4 5 6 7
8