running a background process in pythonanythere <p>I just want to know that if the following is possible:</p> <p>I want to run a local socket program in background in the pythonanywhere and want to access the socket from django app registered in same pythonanywhere domain. </p> <p>Actually I want to run a machine learning algorithm as a socket program which i want to access by the web client. I want to run a single process for any number of client because I dont think its wise to train the algorithm every time a new client gets connected. Can I do that.</p> <p>for being more clear:</p> <p>I want the trained machine learning program to be launched only once in the server and the web portal should receive the inputs parameters from clients and send back the prediction after interacting with the program . All the client has to be served by this single instance of machine learning program so that the main program has to be trained only once.</p> <p>Please suggest any other way to perform this if any.. Thanks in advance..</p>