Groups
Groups
Sign in
Groups
Groups
Project Jupyter
Conversations
About
Send feedback
Help
A very simple question
57 views
Skip to first unread message
nonoleta7
unread,
Sep 9, 2016, 9:23:13 PM
9/9/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
9/13/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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