0

I want to run python code in the box of ready html file how can I do that? this is my html file code .

<!DOCTYPE html>
<html>
<head>
      <title>Hello python!</title>
</head>
<body>

<div style="border: 1px solid #ccc;">
      Output will be here 
</div>

</body>
</html>
4
  • use a template engine like jinja? Commented Apr 25, 2017 at 14:44
  • You know , I need : do something on json file then print out put on html then highlight words of sentences. Can I do this work with jinja Or you have another suggestion?(I'm beginner in python ) Commented Apr 25, 2017 at 14:54
  • try something, if you run into problems ask back with a minimal, complete and verifiable example. otherwise you are not likely to get an answer... Commented Apr 25, 2017 at 14:55
  • I try and can print something like string in html but not exactly what I want. however thank you Commented Apr 25, 2017 at 14:59

1 Answer 1

0

For my python, I use trinket. It works really well and it constantly updates. It is simple, easy to use and free. I would recommend it.

Hope it helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.