Welcome Ignat!

On 12/21/24 16:47, Ignat Insarov wrote:
I spent all day setting up Jupyter to work with FriCAS.

Please immediately write to fricas-devel next time you run into troubles. Only if we know where people struggle can we try to improve the situation.

 The documentation is poor on this topic. This page: https:// fricas.github.io/install.html#hunchentoot-optional — does not explain nearly enough.

Hmmm... I don't see where this is not enough, except, maybe, that it
doesn't say that for

tar -xf hsbcl-1.3.9.tar
cd hsbcl
./build_hsbcl > build_hsbcl.log 2>&1

to work, you must have SBCL installed and available from your PATH. But
otherwise, it is completely sufficient. What exactly was your problem?
Do you have suggestions to improve the documentation?

 I had to refer to a number of other web sites to figure out what is SBCL, Quicklisp, Hunchentoot, and how to make them work.

Quicklisp is not really necessary.

What is documented nowhere is how to put these pieces together to get FriCAS built with Hunchentoot baked in.

I accept this criticism, if you can tell me more clearly what you were
actually missing. That would help me in formulating the steps in a way
that could not only help you but also others in the future.

Annoyingly, HyperDoc pops up every time I restart my FriCAS Jupyter notebook. This is an annoyance that I wish I knew how to disable.

That is easy. jFriCAS starts a new fricas for every jupyter notebook
that you open. You find here

https://jfricas.readthedocs.io/en/latest/misc.html#fricas-start-options

that you would have to look into fricaskernel.py.

Read

https://github.com/fricas/jfricas/blob/master/jfricas/fricaskernel.py#L496

and then do the respective changes in the fricaskernel.py that you have
installed. I, for example, have installed jfricas into a virtual
environment under $HOME/virtualenv/jfricas. So for me it is the file
lib/python3.12/site-packages/jfricas/fricaskernel.py
inside that directory.

I usually run jfricas with

    pid = Popen(['gnome-terminal', '--title=jfricas', '--'] +
                ['fricas','-nosman','-eval',prereq,'-eval',start])

That still pops up a gnome-terminal, but this terminal is connected to
the FriCAS session that underlies the jupyter notebook. So you could
even modify variables from outside of the jupyter notebook.

But having to customize the build instead of simply grabbing the binaries provided by my Linux distribution requires both effort and expertise, and all the rough edges make this option unattractive.

Yep, that's unfortunate. Currently, you cannot have FriCAS from the
Debian repository and run in a jupyter notebook. Two reasons: (1) Debian
FriCAS builds on top of GCL not SBCL and jfricas only works with SBCL at
the moment. (2) An SBCL with Hunchentoot included is needed to build
FriCAS. Linux distributions do not do this, so you currently have to
build FriCAS yourself if you want to run jfricas.

 A little polish would go a long way in making FriCAS more
accessible and attractive.

It's not so easy. Qian works into the direction of making Hunchentoot superfluous. And perhaps that would also solve the problem of jfricas currently not running on LISPs different from SBCL. Although .deb packages are possible to build, I don't have the expertise and we need someone to maintain it in the official Debian repository (not just GCL based, but also based on other LISPs).

Ralf

--
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 visit 
https://groups.google.com/d/msgid/fricas-devel/67d29652-843f-4633-8fb8-309fa2073731%40hemmecke.org.
              • ... 'Nasser M. Abbasi' via FriCAS - computer algebra system
              • ... Ralf Hemmecke
        • Re: [... Qian Yun
          • R... Waldek Hebisch
  • [fricas-devel] Re:... Aravindh Krishnamoorthy
    • Re: [fricas-d... Waldek Hebisch
      • Re: [fric... Aravindh Krishnamoorthy
        • Re: [... Ignat Insarov
          • R... Dima Pasechnik
            • ... Ignat Insarov
          • R... 'Ralf Hemmecke' via FriCAS - computer algebra system
            • ... Ignat Insarov
              • ... Waldek Hebisch
              • ... Ignat Insarov
              • ... Waldek Hebisch
              • ... Ignat Insarov
              • ... 'Ralf Hemmecke' via FriCAS - computer algebra system
          • R... Waldek Hebisch
            • ... Ignat Insarov
              • ... Kurt Pagani
              • ... Ignat Insarov

Reply via email to