mailing-list for TeXmacs Users

Text archives Help


Re: change python environment


Chronological Thread 
  • From: Alkis Akritas <address@hidden>
  • To: Darcy Shen <address@hidden>
  • Cc: texmacs-users <address@hidden>
  • Subject: Re: change python environment
  • Date: Thu, 10 Oct 2019 11:40:47 +0300

Thanks a lot. It worked

On Thu, Oct 10, 2019 at 11:25 AM Darcy Shen <address@hidden> wrote:
OK

Here is a detailed action:

Replace:

(define (python-launcher)
  (if (url-exists? "$TEXMACS_HOME_PATH/plugins/tmpy")
      (string-append "python \""
                     (getenv "TEXMACS_HOME_PATH")
                     "/plugins/tmpy/session/tm_python.py\"")
      (string-append "python \""
                     (getenv "TEXMACS_PATH")
                     "/plugins/tmpy/session/tm_python.py\"")))

With:

(define (python-launcher)
  (if (url-exists? "$TEXMACS_HOME_PATH/plugins/tmpy")
      (string-append "/path/to/your/python \""
                     (getenv "TEXMACS_HOME_PATH")
                     "/plugins/tmpy/session/tm_python.py\"")
      (string-append "/path/to/your/python \""
                     (getenv "TEXMACS_PATH")
                     "/plugins/tmpy/session/tm_python.py\"")))


I will document the detailed steps for the upcoming TeXmacs 2.1 .

---- On Thu, 10 Oct 2019 16:17:39 +0800 Alkis Akritas <address@hidden> wrote ----



On Thu, Oct 10, 2019 at 11:09 AM Darcy Shen <address@hidden> wrote:
Under progs, there is init-python.scm. Just change the python-launcher.
 
I  have seen it but do not understand what I have to change.


Have you read the README.md?

Ditto.  I guess I need more detailed instructions like before. 


The python-launcher is the function that constructs a command to launcher the underlying python process.

We may provide menu entries to choose the available python version later.


---- On Thu, 10 Oct 2019 14:36:53 +0800 Alkis Akritas <address@hidden> wrote ----

Dear Max, 

On a Mac OS X I am trying to change python environments in TeXmacs-1.99.11.app. 

As you had advised in the past, in previous versions of TeXmacs, like 1.99.8, I was changing the first line of the file

/Applications/TeXmacs-1.99.8.app/Contents/Resources/share/TeXmacs/plugins/python/bin/tm_python

However, in  /Applications/TeXmacs-1.99.8.app/Contents/Resources/share/TeXmacs/plugins/python/ 

there is no bin; its contents are README.md, doc and progs.  What should I do?

Thank you, Alkis




--
All the best,

Alkis




--
All the best,

Alkis



Archive powered by MHonArc 2.6.19.

Top of page