mailing-list for TeXmacs Users

Text archives Help


Re: Using Cocalc remote plugins: Can we run remote plugins without X-session?


Chronological Thread 
  • From: TeXmacs <address@hidden>
  • To: address@hidden
  • Subject: Re: Using Cocalc remote plugins: Can we run remote plugins without X-session?
  • Date: Fri, 4 Oct 2019 09:44:57 +0200

Hi Adrian,

I am afraid that I will not have time to investigate Cocalc compatability
in the near future (not before the 2.1 release in any case), but I am
interested to include whatever it takes to get this working.

I think that Max also had some plans related to Jupyter, which also has
a TeXmacs-like generic mechanism to talk to plug-ins. It would be nice
if someone had the time to write a good Jupyter plug-in for TeXmacs.

Best wishes, --Joris


On Mon, Sep 30, 2019 at 05:03:30PM -0500, Adrian S. wrote:
> In Cocalc (Formerly known as sagemath cloud or salvus), many plugins are
> available, as shown by the command
>
> xvfb-run texmacs -s -x "(write-local-plugin-info)" -q
>
> The problem is that, for example, in the file tm_plugins from the local
> computer calls the remote one, it runs the command
> (rcmd "texmacs -s -x \"(write-local-plugin-info)\" -q")
> which requires in the server access to an x-server. I do not know how to
> make the server in cocalc use a fake server. But I think maybe requiring
> texmacs not to need an x-server for these operations or running instead in
> the server, for example,
> (rcmd "xvfb-run texmacs -s -x \"(write-local-plugin-info)\" -q")
>
> would work. However, I cannot modify the code in the server side, since
> they compile it directly.
>
> Thus, is it possible to have the remote access to plugins not to need an
> x-server?
>
> I think that, for example, this would add many plugins by having access to
> the internet.
>
> I understand that some plugin capability would be limited, specially if the
> plugin requires an x-session.
>
> Any thoughts?
>
> -Adrian.
>
>
>
> ("/usr/lib/x86_64-linux-gnu/TeXmacs/bin:/home/user/bin:/cocalc/bin:/cocalc/src/smc-project/bin:/home/user/bin:/home/user/.local/bin:/ext/bin:/usr/lib/xpra:/opt/ghc/bin:/usr/local/bin:/usr/bin:/bin:/ext/data/homer/bin:/ext/data/weblogo:/ext/intellij/idea/bin:/ext/pycharm/pycharm/bin:/usr/lib/postgresql/10/bin"
> (("asymptote" "default" "python
> /usr/share/TeXmacs/plugins/tmpy/session/tm_asy.py") ("axiom" "default"
> "tm_axiom") ("coq" "default" "tm_coq") ("dratex" "default" "tm_dratex
> --texmacs") ("feynmf" "default" "tm_feynmf --texmacs") ("giac" "default"
> "giac --texmacs") ("gnuplot" "default" "python
> /usr/share/TeXmacs/plugins/tmpy/session/tm_gnuplot.py") ("graph" "default"
> "python /usr/share/TeXmacs/plugins/tmpy/session/tm_graph.py") ("lisp"
> "default" "tm_lisp Clisp") ("macaulay2" "default" "M2 --texmacs") ("maxima"
> "default" "tm_maxima 5.42.2 ecl") ("octave" "default" "tm_octave") ("pari"
> "default" "gp --texmacs") ("python" "default" "python
> /usr/share/TeXmacs/plugins/tmpy/session/tm_python.py") ("r" "default"
> "tm_r") ("sage" "default" "sage -python
> /usr/share/TeXmacs/plugins/tmpy/session/tm_sage.py") ("scilab" "default"
> "scilab --texmacs -f
> \"/usr/share/TeXmacs/plugins/scilab/bin/init-scilab.sce\"") ("shell"
> "default" "tm_shell") ("xypic" "default" "python
> /usr/share/TeXmacs/plugins/tmpy/session/tm_xypic.py") ("yacas" "default"
> "yacas --texmacs")) (("gnuplot" . "Gnuplot") ("maxima" . "Maxima")
> ("octave" . "Octave") ("yacas" . "Yacas") ("dratex" . "Dratex") ("r" . "R")
> ("giac" . "Giac") ("python" . "Python") ("pari" . "Pari") ("xypic" .
> "XYpic") ("macaulay2" . "Macaulay 2") ("asymptote" . "Asymptote") ("lisp" .
> "Lisp") ("axiom" . "Axiom") ("scilab" . "Scilab") ("feynmf" . "Feynmf")
> ("sage" . "Sage") ("coq" . "Coq") ("shell" . "Shell") ("graph" . "Graph"))
> (("gnuplot" . "Gnuplot") ("maxima" . "Maxima") ("r" . "R") ("python" .
> "Python") ("pari" . "Pari") ("asymptote" . "Asymptote") ("sage" . "Sage")))



Archive powered by MHonArc 2.6.19.

Top of page