Experimental FriCAS graphics output in Jupyter

14 views
Skip to first unread message

Ralf Hemmecke

unread,
Aug 5, 2026, 5:53:17 PM (8 days ago) Aug 5
to fricas-devel
Based on a lot of work and ideas by Kurt Pagani, I have now put together
a little extension to jfricas that allows to include FriCAS graphics
into a Jupyter notebook.

It is basically transforming the data from TwoDimensionalViewport or
ThreeDimensionalViewport to .ps -> .png -> base64 encode PNG (all
written into /tmp).
To use it, you musst have the programs "pstoimg" and "uuencode" in your
PATH (that is hopefully something that can be replaced by python modules
in th future).

Either compile the attached files (see attached .ipynb) or compile a
full FriCAS from my clone https://github.com/hemmecke/fricas.git (branch
wip/jview) and install kernel.json and fricaskernel.py according to

https://hemmecke.github.io/fricas/install.html#install-jfricas

Note that you should edit fricaskernel.py to use the option

pid = Popen(['fricas','-eval',start])

(comment/uncomment accordingly).

After execution the commands you should see a notebook similar to
jview.html.

It's just a demonstration of what is possible. Feedback is welcome.

Ralf
jfricas.spad
jview.spad
jview.html
jview.ipynb

Grégory Vanuxem

unread,
Aug 6, 2026, 8:29:07 AM (7 days ago) Aug 6
to fricas...@googlegroups.com
Marvelous. I will test. Just some archaeological design was lost. That's become better. No backup.

Good work, thanks 

-- Greg

--
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 fricas-devel...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fricas-devel/cd360d67-d3b6-40a9-9d55-a942e3d68ccb%40hemmecke.org.
Reply all
Reply to author
Forward
0 new messages