Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-implement the SymPy plugin #6

Merged
merged 3 commits into from Oct 3, 2022
Merged

Re-implement the SymPy plugin #6

merged 3 commits into from Oct 3, 2022

Conversation

da-liii
Copy link
Contributor

@da-liii da-liii commented Oct 2, 2022

Why?

Using Pants and PEX, we will get rid of the error message:

Please install sympy first, for example:
    pip install sympy

Because sympy is bundled in the PEX file, in this case, it is sympy==1.10.1.

How to install it

./pants run cli:install -- sympy

# For Mogan Editor
TEXMACS_HOME_PATH=~/.Xmacs ./pants run cli:install -- sympy

Here is the logging of an installation (Using Mogan Editor):

Removing existing /home/sadhen/.Xmacs/plugins/sympy
Packaging: ./pants package //:sympy
23:26:11.94 [INFO] Wrote dist/sympy.pex
Installing: /home/sadhen/.Xmacs/plugins/sympy
Installing: /home/sadhen/.Xmacs/plugins/sympy/bin/sympy.pex

How to test it

Here is the output of launch the SymPy plugin:

TeXmacs] debug-shell, Launching 'python3 /home/sadhen/.Xmacs/plugins/sympy/bin/sympy.pex'

@da-liii da-liii requested a review from woutersj October 2, 2022 16:11
@da-liii da-liii merged commit e8fca35 into main Oct 3, 2022
@da-liii da-liii deleted the da/sympy branch October 3, 2022 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant