Good evening guys.
I've a big problem, as to simplify my school report, and don't do stupid mistakes while copy pasting some equations, I decided to try SageTex, and I've been struggling to make it works as an automated compilation.
To be fair, I had to reinstall all because of an hard drive problem (MiKTeX console and texstudio 3.0.1, plus SageMath9.1, of course), and followed this guide, step by step.
(post:sagetex in texstudio : define a new build tool )
This is my little experimental example.
\documentclass{article}
\usepackage{sagetex}
\begin{document}
Using Sage\TeX, one can use Sage to compute things and put them into
your \LaTeX{} document. For example, there are
$\sage{number_of_partitions(1269)}$ integer partitions of $1269$.
You don't need to compute the number yourself, or even cut and paste
it from somewhere.
Here's some Sage code:
\begin{sageblock}
f(x) = exp(x) * sin(2*x)
\end{sageblock}
The second derivative of $f$ is
[
\frac{\mathrm{d}^{2}}{\mathrm{d}x^{2}} \sage{f(x)} =
\sage{diff(f, x, 2)(x)}.
]
Here's a plot of $f$ from $-1$ to $1$:
\sageplot{plot(f, -1, 1)}
\end{document}
But as you might suspect it didn't worked. I go to tools>users and select the SAGE:SAGE profile and all I got is this PDF

With this message,
Error: Impossible to run the command: sage "Sage-example".sagetex.sage
Moreover, I can't figure out how to navigate in my SageMath console (not Shell or Notebook) till my working directory and run my filename.sagetex.sage with the command sage, seem more like a UNIX environment in wich I can not find any of my actual folders.
And when I try to run sage filename.sagetex.sage the windows prompt tell me it's an unrecognized comand.
Any idea in what could be the problem??
Thanks.

sagetexis with a free Cocalc account. To change directories, trycdwith a path to the directory containing your file; eg,cd '/home/MyDocuments'. – DJP Sep 27 '20 at 20:57So this sagetex example work perfectly, but I can't make the
– Fr3d Sep 28 '20 at 07:41subfilepackage work properly. I have a cover I use for my weekly assignemts, and the I link my assignment withsubfile. I do have to submit a notebook at the end of my course, with all my weekly assignements, so I have to link all of them as they are already done.subfilepackage but with a quick search on this site I found the post here which indicates that thesubfilespackage is supported for SMC, now Cocalc. They even link to a working example on github. If you aren't able to get that to work, contact Cocalc help. – DJP Sep 28 '20 at 15:45