If you have Python script running locally on Windows, you could call the 
sage script by doing something like:

    import os
    os.system('wsl sage your-sage-script.sage')

See this page:

https://learn.microsoft.com/en-us/windows/wsl/filesystems

for more about Windows-Linux interoperability.

David A.
    

Le samedi 2 décembre 2023 à 18:30:05 UTC-5, Sean Fitzpatrick a écrit :

> I am wondering if anyone has experience installing Sage on Windows via 
> WSL, and calling Sage as an executable from another program that's 
> installed locally on Windows.
>
> My particular use case is processing Sage plot images in a PreTeXt 
> document.
>
> I could install everything for PreTeXt via WSL but I already have most 
> things locally installed: LaTeX, Python, VScode, etc.
> Sage is the only missing piece.
>
> For a PreTeXt book with Sage graphics, there's a Python script that 
> extracts the Sage code, sends it to the Sage exectuable, and saves the 
> resulting image.
>
> I'm not sure how to have a Python script running locally on Windows call 
> an executable in WSL.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/a4cf8723-1376-49a6-babe-3bc910423cb4n%40googlegroups.com.

Reply via email to