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
1
vote
0 answers

How to avoid Brython errors on page?

I started working with Brython to create Python 3 interpreter on my page. First i created page on local and all worked fine, then i pasted same code and resources to my web server and page started throwing errors that cannot be fixed, look at page:…
1
vote
1 answer

How can I redirect all Brython output to a textarea element

I have a problem. I need to redirect all Brython output to a