python can replace JavaScript; Pyjamas can be used to achieve Python instead of JavaScript, Pyjamas is a Python ajax development framework that can be used instead of HTML and JavaScript to write web applications , you can reuse and import classes and modules , and AJAX libraries can also solve the interoperability problem .
How nice it would be to be able to write browser-based applications in python instead of Javascript. However, Javascript is the only language that can be executed in the browser (except for Flash or Silverlight).
To think differently, it would indeed be feasible to write code in Python first, and then convert it to Javascript scripts via a compiler. Well, someone has already done it, and it's this: Pyjamas
Introduction of Pyjamas
Pyjamas is a Python Ajax development framework .
oogle's Web Toolkit (GWT) enables us to develop Rich Internet Applications (RIAs) with Ajax capabilities entirely in Java™ code. A rich Java toolset (IDE, refactoring, code completion, debugger, etc.) can be used to develop applications that can be deployed in all major web browsers. With the help of GWT, applications can be written that run in the browser but behave like desktop applications.
Similar to GWT, Pyjamas is a cross-browser API, with which you can write client-side functionality using Python. The advantage of using Pyjamas is that you can write web applications in Python instead of HTML and JavaScript, and you can reuse and import classes and modules. In addition AJAX library can also solve the interoperability problem, do not have to worry about the program in IE6, IE7, Firefox, Safari, Opera and other browsers on the compatibility issues.
Benefits of Pyjamas: Write web applications in Python instead of HTML and JavaScript.
Many people who use the Google Web Toolkit (GWT) wonder why they can't use Python instead of Java, but that's okay with Pyjamas. Similar to GWT, Pyjamas is a cross-browser API that allows you to write client-side functionality in Python. The advantage of using Pyjamas is that you can write web applications in Python instead of HTML and JavaScript, and you can reuse and import classes and modules. In addition AJAX library can also solve the interoperability problem, do not have to worry about the program in IE6, IE7, Firefox, Safari, Opera and other browsers on the compatibility issues.