How to create a Mathematica Notebook in Java?

前端 未结 3 1168
滥情空心
滥情空心 2021-01-14 03:30

I am looking for the prototypical \'Hello World\' program that creates a Mathematica Notebook file.

I have this working program.

 package graphica;

         


        
3条回答
  •  遥遥无期
    2021-01-14 04:21

    Mathematica notebooks are plaintext files with structures like

    Notebook[{Cell[],Cell[]}]
    

    You can work out the required structure by viewing them with a text editor. Assuming you can get Java to create a text file, save it with a .nb file name ending, and invoke the command-line version of Mathematica, then what you want should be doable. You will probably want to set the input cells to initialization type.

提交回复
热议问题