How to compile python embedded in a html doc to display on screen?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andrew5678
    New Member
    • Mar 2013
    • 1

    How to compile python embedded in a html doc to display on screen?

    Hi all, I'm creating an e leaning website for my school, I have fairly good html and PHP skills tho I am currently having issues.

    I require to have an area where my students can write some simple python syntax eg "print hello world" and it will be displayed on the adjacent screen. Can be seen on sites like codepad.org

    I will be using a form to input the syntax, a simple send button and an iframe where the results will be displayed. It is the next step that I am unsure of. Would I send the data using ajax/javascript then render it back to the iframe??? Any suggestions on how this would be done would be greatly appreciated.

    Reagrds Andrew
  • kudos
    Recognized Expert New Member
    • Jul 2006
    • 127

    #2
    Check out Sculpt, which is mentioned in my last article : http://bytes.com/topic/python/insigh...terpreter-logo

    Comment

    Working...