ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 15 Jun 2015 09:25:17 -0500RuntimeError: should never launch viewer in embedded modehttps://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/ 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
Tue, 24 Feb 2015 13:49:44 -0600https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/Answer by kcrisman for <p>In Sage version 6.3, next exemple is OK:</p>
<p>L = [plot(k*x,(x,-1,1)) for k in [1..3]];G = graphics_array(L);G.show(figsize=[5,3]) </p>
<p>But in Sage version 6.4 and 6.5, we have error message </p>
<p>RuntimeError: should never launch viewer in embedded mode</p>
<p>Is there something wrong?
Thanks</p>
https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/?answer=25924#post-id-25924Confirmed. 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.Tue, 24 Feb 2015 14:11:55 -0600https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/?answer=25924#post-id-25924Comment by kcrisman for <p>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</p>
<pre><code>L = [plot(k*x,(x,-1,1),figsize=[5,3]) for k in [1..3]];G = graphics_array(L);G
</code></pre>
<p>and using <code>.show()</code> without keywords seems to work fine, so it is something about putting the keyword in with a graphics array.</p>
https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/?comment=27108#post-id-27108This 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()`.Mon, 15 Jun 2015 09:25:17 -0500https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/?comment=27108#post-id-27108Comment by ken_levasseur for <p>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</p>
<pre><code>L = [plot(k*x,(x,-1,1),figsize=[5,3]) for k in [1..3]];G = graphics_array(L);G
</code></pre>
<p>and using <code>.show()</code> without keywords seems to work fine, so it is something about putting the keyword in with a graphics array.</p>
https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/?comment=27100#post-id-27100I'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.Fri, 12 Jun 2015 15:48:56 -0500https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/?comment=27100#post-id-27100Comment by kcrisman for <p>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</p>
<pre><code>L = [plot(k*x,(x,-1,1),figsize=[5,3]) for k in [1..3]];G = graphics_array(L);G
</code></pre>
<p>and using <code>.show()</code> without keywords seems to work fine, so it is something about putting the keyword in with a graphics array.</p>
https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/?comment=25943#post-id-25943Apparently this is fixed in http://trac.sagemath.org/ticket/17234Thu, 26 Feb 2015 11:09:41 -0600https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/?comment=25943#post-id-25943Comment by kcrisman for <p>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</p>
<pre><code>L = [plot(k*x,(x,-1,1),figsize=[5,3]) for k in [1..3]];G = graphics_array(L);G
</code></pre>
<p>and using <code>.show()</code> without keywords seems to work fine, so it is something about putting the keyword in with a graphics array.</p>
https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/?comment=25932#post-id-25932This is now http://trac.sagemath.org/ticket/17858Wed, 25 Feb 2015 15:38:10 -0600https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/?comment=25932#post-id-25932Comment by rafarob for <p>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</p>
<pre><code>L = [plot(k*x,(x,-1,1),figsize=[5,3]) for k in [1..3]];G = graphics_array(L);G
</code></pre>
<p>and using <code>.show()</code> without keywords seems to work fine, so it is something about putting the keyword in with a graphics array.</p>
https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/?comment=25925#post-id-25925OK. Thanks.Tue, 24 Feb 2015 15:13:52 -0600https://ask.sagemath.org/question/25923/runtimeerror-should-never-launch-viewer-in-embedded-mode/?comment=25925#post-id-25925