mailing-list for TeXmacs Users

Text archives Help


Re: change python environment


Chronological Thread 
  • From: Darcy Shen <address@hidden>
  • To: "Alkis Akritas" <address@hidden>
  • Cc: "texmacs-users" <address@hidden>
  • Subject: Re: change python environment
  • Date: Thu, 10 Oct 2019 16:25:06 +0800
  • Arc-authentication-results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=address@hidden; dmarc=pass header.from=<address@hidden> header.from=<address@hidden>
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570695906; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=+kuxkqtE2FdYqjovsHiI0c2Id4mjV9xPCAmwzPkEjgY=; b=WaHmicTzyJvuFoAqV5CIbIZqPhFP0YN29Kffof6LEnAYFDoDkWAsyartj0vEq60MpSgE+O1ORtBV/kMvdHW6BS0wEfbeUEHw7H//TRzq9zwrnr28md7dpKsXI4kJ+llMUivWrk6rI8IXysla5++OwpoLKpJiaTpzG6S3iThVOW4=
  • Arc-seal: i=1; a=rsa-sha256; t=1570695906; cv=none; d=zoho.com; s=zohoarc; b=lTbI8mvOfEpUSUr3F8dKKojffJairwz5cNxnvp3CSFVR1RnwzghrjmF014TmrY1b2O/WHGiPZizIuII1K48ui2L46IxAreJHjoOOefNHBN4vlUqQfBdzk00pN8dmMixvWlN/DfPML28gh2Kww93saAkBFyw8HVkBBITnBah8CzE=
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=date:from:to:cc:message-id:in-reply-to:references:subject:mime-version:content-type:user-agent; b=idj08t2SRGWPCmxfvKugI+69THIEe/7SsJGxs5NGV82e79FyWNoJyOW5PEq5Ta7pH1nIhD+y8hkw P87F/wVOS8jIY4JUfvjfutRjKCBOiZTMtAmFkZZ+w5KEdyZM8MMR

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





Archive powered by MHonArc 2.6.19.

Top of page