On Dec 21, 2016, at 1:10 PM, Axel <axe...@gmail.com> wrote:fyi---------- Forwarded message ----------
From: Axel <axe...@gmail.com>
Date: Wed, Dec 21, 2016 at 7:10 PM
Subject: Re: CompletionProvder in Seco?
To: Konstantin Vandev <konstant...@gmail.com>HiIs there a way to do some "preferred settings" for an output cell (i.e. "Plain Text" or "LaTeX" in my example)?
I added JLaTeXMath support and commented it out in this commit:
https://github.com/axkr/seco/commit/230093b3e2e9fbbc39e3706842c9bfe6679f966dIs it possible to print out a notebook?--On Wed, Dec 21, 2016 at 2:21 PM, Konstantin Vandev <konstant...@gmail.com> wrote:The following quick and dirty change in MathScript.eval()if (result.isAST("Plot")) {AbstractPlotter2D plot = Plotter.getPlotter();java.util.List<String> l = new java.util.ArrayList<String>();if (ast.size() >= 2 && !ast.arg1().isList()) {IExpr temp = fEngine.evaluate(ast.arg1());l.add(temp.toString());} else {// default examplel.addField("y(x) = ", "Sin[x]^3");}plot.setXMin(-10.0);plot.setXMax(10.0);plot.setYMin(-2.0);plot.setYMax(2.0);plot.setFunctions(l);return plot;}will show the plot inside an output cell, instead of opening a separate window.On Wed, Dec 21, 2016 at 3:06 PM, Konstantin Vandev <konstant...@gmail.com> wrote:I've slightly modified your code to fix autocompletion. Also I added some hint where you could add your java doc.In theory you should be able to display any JComponent as a result of the cell evaluation. Simply change MathScriptEngine'spublic Object eval(final String script, final ScriptContext context) methodto return the desired component instead of "" as it currently does.On Tue, Dec 20, 2016 at 8:42 PM, Axel <axe...@gmail.com> wrote:On Mon, Dec 19, 2016 at 5:58 PM, Borislav Iordanov <borislav...@gmail.com> wrote:Axel, let us know if this is helpful and if you need anything else?
Also, let me know if you want me to publicize your work? Not that I’m going to get lots of “traction” but I am excited that you are doing something on top of Seco and I would like to give it more visibility, if I can :)HiI've integrated these Mathematica parser/evaluator projects
- https://bitbucket.org/axelclk/symja_android_library/wiki/Home
- https://bitbucket.org/cbarbat/mma-parseryou can evaluate a "subset of mathematica" in the input cells.Currently if you type something like:
- Plot[Sin[x],{x,-10,10}]
- ParametricPlot[{Sin[2*t],Cos[3*t]}]
- Plot3D[]
an interactive plotter windows should popup. How can integrate a finished plot back in the notebook? (as JComponent? In SVG format? Or in some "interpreted Mathematica" format?)My attempt to get auto-completion to run doesn't work.If you type something like "Pl" the system suggests some words but if you choose them it didn't insert them correctly?If I have some help files (in HTML?) for my commands in my JAR as resources, how can I show the input as "Javadoc" for this "Mathematica Command".I hope my explanations are understandable and you can help me improving this "starting point" of a Symja Seco-plugin.regards AxelAxel Kramer
--Axel Kramer