Skip to Content.
Sympa Menu

texmacs-users - Re: shortcut for tables..

Subject: mailing-list for TeXmacs Users

List archive

Re: shortcut for tables..


Chronological Thread 
  • From: Massimiliano Gubinelli <address@hidden>
  • To: Vincent Douce Mathoscope <address@hidden>
  • Cc: address@hidden
  • Subject: Re: shortcut for tables..
  • Date: Wed, 9 Dec 2020 23:30:29 +0100

Dear Vincent,

On 9. Dec 2020, at 23:03, Vincent Douce Mathoscope <address@hidden> wrote:

i take the occasion of speaking programmation of this thread to ask (maybe i should open a new thread ?) if anyone has made a video explaining step by step how you can execute a python/matplotlib program inside TeXmacs. i mean, can i open a python session and call the .py file i have written before ?


I'm not sure what you mean. You can open a Python shell, which will give you a prompt. There you can load a script in any way python allows you. I do not know the language well, sorry. Maybe look here:

https://stackoverflow.com/questions/5280178/how-do-i-load-a-file-into-the-python-console

in order to have graphics embedded in your document, you have to tell to matplot lib to produce a ps or pdf. The simplest case is by using

ps_out (mpl.cgf ())

where mpl is the matplotlib import and ps_out is a function defined in Python by TeXmacs which will pass back the PS code for the image. Look at the Help page for the Python plugin for more examples.


Best
Max




Archive powered by MHonArc 2.6.19.

Top of Page