1
$\begingroup$

I am working on a script which loads a package called test. When I try to run the same from my command line, I am seeing my input printed without execution.

Notebook execution:

Needs["test`"];
test["foo"]`

Output1

Command line execution:

Needs["test`"];
test["foo"]

test["foo"]

Am I missing something here?

$\endgroup$
  • $\begingroup$ Is the package on your $Path? Use FindFile to see if Mathematica can find it. $\endgroup$ – Szabolcs Sep 30 '19 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.