I know how to run a sage function in command-line:
[liuzw@ln01 ~]$ sage -c 'print(1+1)'
2
[liuzw@ln01 ~]
I know how to attach a code in command-line:
[liuzw@ln01 ~]$ sage fusion2.spyx
Compiling fusion2.spyx...
[liuzw@ln01 ~]$
But I don't know how to run a sage function after having attached a code:
[liuzw@ln01 ~]$ sage fusion2.spyx -c 'print(1+1)'
Compiling fusion2.spyx...
[liuzw@ln01 ~]$
Question: How to do this last step?