mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] [ANN] SageMath plugin for GNU TeXmacs


Chronological Thread 
  • From: Darcy Shen <address@hidden>
  • To: "Darcy Shen" <address@hidden>, "henrigirard" <address@hidden>
  • Cc: "texmacs-users" <address@hidden>
  • Subject: Re: [TeXmacs] [ANN] SageMath plugin for GNU TeXmacs
  • Date: Sun, 14 Oct 2018 22:34:21 +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=1539527663; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=oMPqyprS6elfjv9lT//IVJlkBrudqwXG2PqCDiI/kGc=; b=HjszlpRRlRntD0adOMfrQRU5ok7LKeWB78LfhQpxLS+Mo6YRNOvulyfSEiByn4jIrgjsMruV+Td7mih7GR+ukkgxQbp1XyNqbsH5CUbLbMnPU52aTM4Sb+qQ9H6oQMV2GoeQeZ52Ats0hay+ICSSeMbyCAW9oDC7Um0mp8c+ceM=
  • Arc-seal: i=1; a=rsa-sha256; t=1539527663; cv=none; d=zoho.com; s=zohoarc; b=EtTSnuece/5iCVk5D+kk2NQ+DiwSOnQ23QmfscK/5POf3OlhxOFMZndVfWENvvW801RdKE1gCnnJnfV0b+6BSqwvIdl0aV/C01GSdB1U27hC9BDnURoDv8CziCHFWMUX6eu0P4Rxgv/EXW0JUPVGZYDZvKNGsMiNKf6qLuxZevo=
  • 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=dUm9TpsS/WW6x7SMe+HHcC9z8F53pSCIy1dyqRFtwkUxTxM6y73HTs3vDCvlWD59/fN/0GtzGQIm pz+Igc22HzJuzoKGHAIN746mDs/kKo5b3VYhl/pSSGTwE7m/IDWD

Just solved the shebang problem on GNU/Linux by extracting the python code into bridge.py

Please use

git clone address@hidden:texmacs/SageMath.tm.git $HOME/.TeXmacs/plugins/sage

again.


However, your error is a bit strange. It seems a SageMath bug rather than a plugin bug.



---- On Sun, 14 Oct 2018 21:05:00 +0800 Darcy Shen <address@hidden> wrote ----

Well ,the shebang that works on mac does not work on debian.


---- On Sun, 14 Oct 2018 02:06:26 +0800 Darcy Shen <address@hidden> wrote ----



Well ,the shebang that works on mac does work on debian. Just confirmed. I will solve it later.




---- On Thu, 11 Oct 2018 22:06:52 +0800 HenriGirard<address@hidden> wrote ----


I used git clone, but I can't use your command because it can copy then I just copied the files

Well I am not on mac os but ubuntu 18.10 (ubuntu +1) sagemath version is 8.3 and 8.4 rc03

I will try again


Le 11/10/2018 à 10:08, Darcy Shen a écrit :


It works fine on my MacOS with the latest SageMath. Please provide more details.

Your OS, your SageMath version and more.

And checks if the sage repl works fine.

Are you using git clone or just copy the two files?


---- On Thu, 11 Oct 2018 14:40:33 +0800 HenriGirard <address@hidden> wrote ----

thanks...

It doesn' work, message error

Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/TeXmacs/bin/tm_sage", line 15, in <module>
    from sage.all import *
  File "/usr/lib/python2.7/dist-packages/sage/all.py", line 71, in <module>
    from sage.env import SAGE_ROOT, SAGE_SRC, SAGE_DOC_SRC, SAGE_LOCAL, DOT_SAGE, SAGE_ENV
  File "/usr/lib/python2.7/dist-packages/sage/env.py", line 123, in <module>
    _add_variable_or_fallback('SAGE_ETC',        opj('$SAGE_LOCAL', 'etc'))
  File "/usr/lib/python2.7/dist-packages/sage/env.py", line 103, in _add_variable_or_fallback
    value = sep.join(components)
TypeError: sequence item 0: expected string, NoneType found
En cours…

Sage] 
And stay blocked ...



Le 10/10/2018 à 18:39, sadhen a écrit :

Hi TeXmacs Users:


https://github.com/sagemath/website/issues/152


There is a issue for SageMath and GNU TeXmacs, please post your opinions .


 原始邮件 
发件人: sadhen<address@hidden>
收件人: address@hidden
抄送: HenriGirard<address@hidden>
发送时间: 2018年10月11日(周四) 00:18
主题: [ANN] SageMath plugin for GNU TeXmacs

see https://github.com/texmacs/SageMath.tm


## Installation guide: 


git clone address@hidden:texmacs/SageMath.tm.git $HOME/.TeXmacs/plugins/sage



## How it works

The customized `$HOME/.TeXmacs/plugins` will override the default one.


## Another Plugins

1. https://github.com/texmacs/Python3.tm

2. https://github.com/texmacs/TeXmacs.scala


## Future

Click to install or remove a plugin from Github.



## SageMath Plugins need your help

Just make PR on  https://github.com/texmacs/SageMath.tm .


It is easy.


Problem: Lack of documents, and the wiki on official website of Sage is outdated.


I’m not a Sage user and not good at written English as a native Chinese user. Your contribution is appriciated.


Thanks!!!







Archive powered by MHonArc 2.6.19.

Top of page