On Sun, Jun 25, 2023 at 04:13:46PM +0200, Ralf Hemmecke wrote:
> > I am trying to use sbcl-1.4.6. ATM it seems that it works.
> > However, since the process uses different, newer environment
> > (Gentoo) there are possible glitches. I have now put test
> > tarball at
> >
> > http://www.math.uni.wroc.pl/~hebisch/fricas/fricas-1.3.9-pre.amd64.tar.bz2
>
> > binary works. In particular hunchentoot is included, so it
> > should work with jfricas.
>
> I installed this binary. In fact, I roughly followed the steps at
>
> https://hemmecke.github.io/qeta/fricasinstall.html#recommended-installation
>
> I had, of course, no problem with libssl. So that section from the above
> site can safely be ignored.
>
> The jfricas installation in a virtual environment ran smoothly and obviously
> seems to work nicely.
>
> I have not installed JupyText, but these things do not depend on FriCAS or
> hunchentoot, but are more connected to the jupyter side.
>
> Waldek, newer versions of jfricas rely on a new variable *OBEY-STDOUT* in
> FriCAS.
>
> https://github.com/fricas/jfricas/commit/78be121a4b10ee4183d4e097547c05a4756da633
>
> The respective patch to FriCAS is attached.
OK
> If that is not in the fricas repo, I must do a redefinition of OBEY during
> the start of webspad.lisp from jfricas.
>
> https://github.com/hemmecke/jfricas/blob/master/jfricas/webspad.lisp#L95
>
> I would rather like to go without such a redefinition and simply switch a
> variable to true.
>
> Similarly with mathprintWithNumber. But I guess mathPrintWithNumber is too
> late for the next release.
Well, I was thinking about this. The attached patch should handle this.
Just set '$print_equatnum' to 'false' (Lisp 'nil') to supress equation
numbers.
> The definition of |interpret-block| would also be a nice addition to FriCAS,
> since it allows multi-line strings to be interpreted as if coming from a
> file (with intendation working correctly).
>
> https://github.com/hemmecke/jfricas/blob/master/jfricas/webspad.lisp#L102
Yes, it can go in.
> I would like to ask for inclusion of the attached patch since that
> does not actually change any existing behaviour of FriCAS, except that one
> then can set *OBEY-STDOUT* to true in order to be able to catch everything
> that goes to the stdout, in particular the output of
> ")sys pwd".
Yes, OK.
--
Waldek Hebisch
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/ZJiATXMsKwGVDDUE%40fricas.math.uni.wroc.pl.
--- trunk.pp/src/interp/i-output.boot 2023-06-25 01:38:43.977579341 +0000
+++ trunk/src/interp/i-output.boot 2023-06-25 16:17:08.482798513 +0000
@@ -257,6 +257,7 @@
(bslash . 16)_
))
+DEFVAR($print_equatnum, true)
$collectOutput := nil
get_lisp_stream(fs) == REST(fs)
@@ -342,7 +343,7 @@
ioHook("startAlgebraOutput")
x:= outputTran2 x
maprin
- $IOindex => ['EQUATNUM,$IOindex,x]
+ $IOindex and $print_equatnum => ['EQUATNUM,$IOindex,x]
x
ioHook("endOfAlgebraOutput")