Ask Your Question
0

How to get inline notebook images under Windows?

asked 2013-04-07 20:23:37 -0500

updated 2013-04-07 22:04:22 -0500

I can't get my images to show in notebook in anything other than a popup. I'm running the framework/iPython under Windows Vista/Chrome v26 --- finally!! :)

I have a batch file with: ipython notebook --pylab inline

Have also tried: ipython notebook --pylab=inline

Both with no success, any help appreciated :)

edit: I'm using v1.3 "Master" version of SimpleCV BTW. Are other Windows users having any success with this feature?

edit retag flag offensive close delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-04-08 08:43:55 -0500

kscottz gravatar image

You need to use the develop version of SimpleCV not the superpack for the pylab flag to work.

edit flag offensive delete publish link more
0

answered 2013-04-09 14:47:06 -0500

updated 2013-04-09 14:52:01 -0500

OK tried this from command line (Windows CMD)..

>simplecv notebook --pylab=inline

Traceback (most recent call last):

File "F:\Program Files\Python-v2.7.4\Scripts\simplecv-script.py", line 5, in < module >

from pkgresources import loadentry_point

File "F:\Program Files\Python-v2.7.4\lib\site-packages\pkg_resources.py", line 2603, in < module >

workingset.require(_ requires __)

File "F:\Program Files\Python-v2.7.4\lib\site-packages\pkg_resources.py", line 666, in require

needed = self.resolve(parse_requirements(requirements))

File "F:\Program Files\Python-v2.7.4\lib\site-packages\pkg_resources.py", line 565, in resolve

raise DistributionNotFound(req) # XXX put more info here

pkg_resources.DistributionNotFound: SimpleCV==1.3

edit flag offensive delete publish link more

Comments

Hrm. Never seen that error before. Could this be a python 2.7.3 vs. 2.7.4 issue? Just a guess.

kscottz ( 2013-04-10 10:00:07 -0500 )edit

As a noob to all things python I really don't know, the muddle of a mess that is python package distribution is a complete mystery to me.

I'm wondering if this is contention between pip and easy_install as they where both involved in the install process? Maybe not if you haven't seen this before.

Richard Plester ( 2013-04-10 10:26:59 -0500 )edit
img = Image("C:/users/rich/pictures/gaffes.png")
disp = Display(displaytype='notebook')
img.save(disp)

I can crowbar images into the notebook with this, so some progress from my perspective. Does it make sense to you why .show() doesn't inline but this code does?

Richard Plester ( 2013-04-10 11:28:14 -0500 )edit

easyinstall vs pip is a long battle. The main difference is that easyinstall supports EGG's and pip supports installing from zip's and git. EGG's are easy because they are prebuilt. If that is working then indeed .show() may very well have a bug. Can you please submit this as a

xamox ( 2013-04-10 13:31:58 -0500 )edit

issue, to the issue queue: https://github.com/ingenuitas/SimpleCV/issues

xamox ( 2013-04-10 13:32:29 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

Add answer

[hide preview]

Question tools

Follow
1 follower

Stats

Asked: 2013-04-07 20:23:37 -0500

Seen: 300 times

Last updated: Apr 09 '13