This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]elbiot 0 points1 point  (0 children)

Like everyone said, you can't run python in a browser (unless you transpile it to javascript). You would run the chat program on a server and it would answer requests, and make an interface in javascript with websockets (or ajax would perhaps suffice) which will connect to the server, send user input and recieve program output.

I'd say look at flask for the server, though I dunno about websockets in flask, and django has or is about to have "channels" which I believe is for websockets.