Ask Your Question
1

RuntimeError: should never launch viewer in embedded mode

asked 2015-02-24 20:49:44 +0200

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 21:11:55 +0200

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 22:13:52 +0200 )edit
kcrisman gravatar imagekcrisman ( 2015-02-25 22:38:10 +0200 )edit

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

kcrisman gravatar imagekcrisman ( 2015-02-26 18:09:41 +0200 )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 22:48:56 +0200 )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 16:25:17 +0200 )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 20:49:44 +0200

Seen: 248 times

Last updated: Feb 24 '15