- From: Joris van der Hoeven <address@hidden>
- To: address@hidden
- Subject: Re: [TeXmacs] How to hide all but the generated image of a python session ?
- Date: Sun, 25 Sep 2005 22:13:59 +0200
On Tue, Sep 13, 2005 at 10:46:12PM +0200, Nicolas Girard wrote:
>
Hi all,
>
I did various attemps to interactively generate some figures by typing
>
python
>
commands in a python session, then display the generated image using the
>
python function ps_out. As a final step I'd like to show only but this
>
figure.
>
Here follows a typical python session:
>
>
x Welcome to Python
>
x TeXmacs Python interface [...]
>
x http://dbkza.org/tmpython.html
>
x python] from x import y,z
>
x python] use y and z to generate a figure
>
x dummy output
>
x python] save the figure as 'fig.eps'
>
x dummy output
>
x python] ps_out('fig.eps')
>
o
>
o +------------------------
>
o | the figure appears here
>
o |
>
o +------------------------
>
o
>
>
I've prefixed by an x all that I'd like to hide, and by an o what I'd like
>
to
>
keep displayed (the sole image)
>
>
Is is possible to achieve ? And if so, would it be possible to do this
>
inside
>
a 'figure' environment ?
Try the (not yet document) magic keystroke
"M-* !"
change "scheme" into "python" (all in lower case) and use
"C-*"
to switch between the "Python source code" and the corresponding output.
Best wishes, Joris
Archive powered by MHonArc 2.6.19.