On Friday, September 9, 2016 at 6:23:13 PM UTC-7, ... wrote:
>
> How do I incorporate a notebook to the existing webpage (Apache, port 80)
> as CGI file?
>
> TIA
> James
>
To answer my question, a working solution could be
#!/bin/env python
import sys
import matplotlib
matplotlib.use( 'Agg' )
[ nortebook content ]
print("Content-type: image/png\n")
#plt.show()
plt.savefig( sys.stdout )
James
--
You received this message because you are subscribed to the Google Groups
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jupyter/e3a21d7e-7145-40f1-83ba-21306ba96fd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.