Ask Your Question
1

RuntimeError: should never launch viewer in embedded mode

asked 2015-02-24 13:49:44 -0600

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-24 14:11:55 -0600

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.

edit flag offensive delete link more

Comments

OK. Thanks.

rafarob gravatar imagerafarob ( 2015-02-24 15:13:52 -0600 )edit
kcrisman gravatar imagekcrisman ( 2015-02-25 15:38:10 -0600 )edit

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

kcrisman gravatar imagekcrisman ( 2015-02-26 11:09:41 -0600 )edit
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 ( 2015-06-12 15:48:56 -0600 )edit

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 ( 2015-06-15 09:25:17 -0600 )edit

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: 2015-02-24 13:49:44 -0600

Seen: 140 times

Last updated: Feb 24 '15