Ask Your Question
1

RuntimeError: should never launch viewer in embedded mode

asked 10 years ago

rafarob gravatar image

In Sage version 6.3, next exemple is OK:

L = [plot(k*x,(x,-1,1)) for k in [1..3]];G = graphics_array(L);G.show(figsize=[5,3])

But in Sage version 6.4 and 6.5, we have error message

RuntimeError: should never launch viewer in embedded mode

Is there something wrong? Thanks

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 10 years ago

kcrisman gravatar image

Confirmed. I'm sure this is continued fallout from the display hook changes. Interestingly, it does still show the graphic in the notebook! Note that

L = [plot(k*x,(x,-1,1),figsize=[5,3]) for k in [1..3]];G = graphics_array(L);G

and using .show() without keywords seems to work fine, so it is something about putting the keyword in with a graphics array.

Preview: (hide)
link

Comments

OK. Thanks.

rafarob gravatar imagerafarob ( 10 years ago )
kcrisman gravatar imagekcrisman ( 10 years ago )

Apparently this is fixed in http://trac.sagemath.org/ticket/17234

kcrisman gravatar imagekcrisman ( 10 years ago )
1

I'm using version 6.5 and get the same error when I evaluate

graphics_array(map(lambda g:g.plot(layout='circular'),duplicates)).show()

where duplicates is a list of graphs. The output is fine, but the error still appears.

ken_levasseur gravatar imageken_levasseur ( 9 years ago )

This seems to work fine in the latest beta, and I wouldn't be surprised if it were somehow related, though graphics_array needs to be refactored to share more with Graphics().

kcrisman gravatar imagekcrisman ( 9 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 10 years ago

Seen: 313 times

Last updated: Feb 24 '15