Message Boards Message Boards

0
|
731 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Wolframscript development workflow

Posted 5 months ago

Hello all,

I have a license for Mathematica Home Edition, version 14. I'm working on a small script in wls, but I can't figure out a good workflow:

When the script is opened in a Mathematica notebook, I can't execute it on the command like, I'm getting: "bad interpreter: Text file busy" (I'm on Linux). If I close the notebook, all good, I can execute the script fine.

I imagine there must be a way to be able to both edit and run the script at the same time?

Thanks in advance.

Patrice

2 Replies

Thank you, it works with VSCode. Not a big fan of the editor, but at least, it's a workable solution.

I've contacted Mathematica support, let's say what they say, and I will update here.

Patrice

Posted 5 months ago

Hi Patrice,

When working with .wls files I prefer to use VSCode with the Wolfram Language extension. Start the file with

#!/usr/bin/env wolframscript

Then from the shell

./file.wls

or from the VSCode menu Terminal / Run Active File

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract