You are here

[solved]Embedding Python in HTML

3 posts / 0 new
Last post
Lord_Theren
Lord_Theren's picture
Offline
Last seen: 9 months 2 weeks ago
Joined: 2013-10-24 16:11
[solved]Embedding Python in HTML

Okay, so what I want to do is embed some Python code into an HTML webpage. Can someone tell me how to do this?

Ken Herbert
Ken Herbert's picture
Online
Last seen: 4 min 19 sec ago
DeveloperModerator
Joined: 2010-05-25 18:19
Depends

on what you are trying to make happen with it.

If you are trying to use it as a dynamic client-side language like Javascript, a Java applet or Flash object, creating in page animations or handling events, then I am pretty sure you are out of luck.

If you are trying to use it as a server-side templating language like PHP, ASP etc. then you can technically do it. Python being white-space sensitive does make things difficult, thus there are better and easier solutions for the task (like PHP).

If you are still intent on trying it, then here is a decent link to get you started.

Lord_Theren
Lord_Theren's picture
Offline
Last seen: 9 months 2 weeks ago
Joined: 2013-10-24 16:11
Okay, thanks for the

Okay, thanks for the response!

The two most important days of your life are the day you are born and the day you find out why.

Log in or register to post comments