image processing in notebook server

asked 7 years ago

Allen gravatar image

I have a local notebook server and I'd like to be able to use the image manipulation modules from scipy. They seem to import just fine, but I never get any images, only what appear to be commands.

import pylab
from scipy import misc
A = misc.face()
pylab.imshow(A)

Outputs

AxesImage(80,48;496x384)

Do I need some additional configuration, or a plugin to make it work?

Preview: (hide)

Comments

Is this the legacy Sage notebook or the Jupyter notebook?

Iguananaut gravatar imageIguananaut ( 7 years ago )

The Sage notebook. Is it possible to run a server for Jupyter notebooks?

Allen gravatar imageAllen ( 7 years ago )

I think it's actually the default in new versions of Sage, or becoming the default--I forget the status. You can start it though with sage --notebook=jupyter. That doesn't necessarily answer your question, but I don't personally know how to use the legacy notebook.

Iguananaut gravatar imageIguananaut ( 7 years ago )