I try to use jupyter_client to get the matplotlib output and display it in
my app. Here's what I did. But io.stdout is just a string. How can I get
the actual image data of matplotlib. Thanks
In [6]: with capture_output() as io:
...: reply = kc.execute_interactive("import matplotlib.pyplot as
plt\n%matplotlib inline\ndata=[1,1,2,3,4]\nplt.figure()\nplt.plot(data)",
timeout=TI
...: MEOUT)
...:
...:
In [8]: io.stdout
Out[8]: '[<matplotlib.lines.Line2D at
0x1086a8d30>]<matplotlib.figure.Figure at 0x106f220f0>'
--
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/3332cdec-b938-495e-821a-86132ac31749%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.