texmacs / python

Python2/Python3 Plugin for GNU TeXmacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python plugin

Join the chat at https://gitter.im/texmacs/Lobby

Installation

It is a built-in plugin in TeXmacs. If you need to customize it, please install it under the $TEXMACS_HOME_PATH:

# For GNU/Linux or macOS:
git clone git@github.com:texmacs/python.git $HOME/.TeXmacs/plugins/python

# For Windows:
git clone git@github.com:texmacs/python.git %APPDATA%\TeXmacs\plugins\python

Change the Python Interpreter

Install the Python plugin to $TEXMACS_HOME_PATH/plugins and then change the python launcher in $TEXMACS_HOME_PATH/plugins/python/progs/init-python.scm.

If you have permissions for $TEXMACS_PATH/plugins/python/progs/init-python.scm, you may also change the system one.

Here is the detailed example of changing the python command:

(define (python-command) "python3")

By default, we use python3. To use a specific python version, just change the return value of the (python-commond) function.

(define (python-command) "/path/to/python")

About

Python2/Python3 Plugin for GNU TeXmacs


Languages

Language:Scheme 91.5%Language:TypeScript 8.5%