I am new to python Notebook and I am having problem with displaying the output to the webpage. It always open a popup window instead of displaying the output in Html form. Is there a way to put a code in my site and let the python language interpret my code and display the output as html when the page is loaded? or image if it is a graph?. See the sample image below.
[sample screenshot from a website][1]
Currently my code to call python is
<?php
$command = escapeshellcmd('python C:\Users\dondell\Downloads\a.py');
$output = shell_exec($command);
echo $output;
?>
This code will print number output to html directly but if the output is image. it will not display but a popup window appear instead.