How to show console output to html <dev> section . | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

How to show console output to html <dev> section .

On button click, I have called a function which will perform certain tasks step by step. During the execution of the tasks i want to show the running tasks verbose out put to Html <dev> section. I am using Flask web framework.

12th May 2020, 1:26 AM
Prashant Pokhriyal
Prashant Pokhriyal - avatar
2 Réponses
0
Send the code please
16th May 2020, 8:23 AM
vinita sarda
vinita sarda - avatar
0
Example: def action (): print ("First process Done") print ("Second process Done") When button will be cliked the above function will be called and while executing the above function, all the print messages will be shown in the <div> below button
16th May 2020, 10:46 AM
Prashant Pokhriyal
Prashant Pokhriyal - avatar