Ralf wrote: > I only had a quick test for now. I guess it'll take longer to test more > thoroughly. > > But I have a couple of remarks. > > 1) Where exactly do you filter what will be shown in the output fold? > Interestingly, it shows also the input line. But I guess that is not so > easy to handle, because one should take care of at least 3 situations. > 1) The command results in no output ")set algebra on" > 2) A normal command results in an error. > 3) A command works as expected and shows a result. > > I am not completely sure whether one really has to distinguish, but if > you point me to the right code piece, similar to such a link > > http://code.google.com/p/mathpiper/source/browse/trunk/src/plugins/fricas_plugin/src/fricas.props#45 > > I might be able to play with it a bit.
The input lines are shown in the fold output because I am using )read to evaluate the code. Is there an alternative function to )read that can be used which will not show the input lines? As for where the response from FriCAS gets filtered, it is in the following BeanShell script starting on line 605: macros/MathPiperIDE/Shift_Enter.bsh //In the MathPiperIDE distribution. src/jedit_core/macros/MathPiperIDE/Shift_Enter.bsh //In the source code. BeanShell is a scripting language which uses Java syntax and it is the main scripting language that is used to customize MathPiperIDE/jEdit (although a number of other scripting languages can be used for customization too.) This script is executed every time <shift><enter> is pressed when the cursor is in a fold. The script is currently experimental in nature and it is being used to determine how folds should work and it will eventually be replaced by more robust code. If you edit this script within MathPiperIDE itself, every time you save the changes, the IDE reevaluates the script and the changes are immediately available. >> After you launch MathPiperIDE, select Help -> Plugins -> FriCAS and >> instructions for using the plugin will be displayed. > > Isn't that a bit inconvenient? Wouldn't it make sense you first check > whether you can find fricas in the PATH and offer the directory thing > only for cases where a user knows where fricas is? I will look into doing this. > For the Sage notebook I had to switch from starting "fricas -nox" to > "fricas -nosman" because otherwise there sometimes remained an AXIOMsys > process running. Okay, I changed the code to use -nosman instead of -nox -noclef and now FriCAS only uses one process instead of several. > I used )quit inside the ide to shut down fricas. How can I restart it? I will look into providing a GUI button which can be used to restart FriCAS. >> Finally, a couple of people have asked me if it would be possible to >> also add support for OpenAxiom to MathPiperIDE. In theory, the >> FriCAS plugin should be able to work with OpenAxiom too, but I have >> not tested this yet. I am thinking it may be a good idea to >> eventually rename the FriCAS plugin to something like PanAxiom. > > Well, everything is up to you, because it is your code. But if you want to > have my opinion, then I currently think, that it is not a good idea. Axiom, > FriCAS and OpenAxiom are three different projects and even if they are > currently very, very close, that might not be so in the future. For the mere > reason that people should recognize the system and send bug reports to the > respective bug trackers/mailing list, it would be better to have an > interface for each of the panaxiom systems and not let people complain about > one system if they actually mean the other. These are good reasons for having separate plugins for the PanAxiom systems. This is what I will do then. Ted -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/fricas-devel?hl=en.
