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.
D
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