image processing in notebook server

asked 2017-12-16 09:28:07 +0200

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?

edit retag flag offensive close merge delete

Comments

Is this the legacy Sage notebook or the Jupyter notebook?

Iguananaut gravatar imageIguananaut ( 2017-12-18 13:55:08 +0200 )edit

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

Allen gravatar imageAllen ( 2017-12-18 18:47:37 +0200 )edit

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 ( 2017-12-19 10:46:11 +0200 )edit