-
Hi: I was able to run a wolframscript script in a data loader which along with sending data to stdout also generates a plot in a separate following command. But the plot is stored in the root directory. Is there a way to load an image file from the root directory? Thx! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I was able to set the directory in wolframscript to store the plot in /docs/data. So, the data loader was able to pick it up. Great! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
That's fantastic! I didn't realize you are one of the contributors! I think data loaders is a game changer and will definitely encourage more people to use Observable Framework in place of say, Svelte which is also a great product but it doesn't have this feature which is very distinct. gani- |
Beta Was this translation helpful? Give feedback.
The data loader file for wolframscript (assuming it is your $PATH) is very simple -- you have to name it ending in
.exe
(even if you are on a Mac like I am!), so my file was namedwolfram.txt.exe
and stored in docs/data folder. The resulting plot is also stored in the same folder by setting the right path in Mathematica. The resulting outputs can be simply referenced in markdown and html tag. Very convenient - no need for display(xxx) in js block, etc.The wolfram.md file is
And the result is