A very simple question

57 views
Skip to first unread message

nonoleta7

unread,
Sep 9, 2016, 9:23:13 PM9/9/16
to Project Jupyter
How do I incorporate a notebook to the existing webpage (Apache, port 80) as CGI file?

TIA
James

nonoleta7

unread,
Sep 13, 2016, 2:44:30 PM9/13/16
to Project Jupyter
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
Reply all
Reply to author
Forward
0 new messages