Karim Belabas on Sat, 10 Oct 2015 11:00:31 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Jupyter kernel for PARI/GP


* Jeroen Demeyer [2015-10-10 10:35]:
> I have made a first version of a Jupyter kernel for PARI/GP.

Sounds very interesting.  Thanks !
Before I give it a try, some quick comments :

[...]
> Not done (yet):
> * history
> * long ??help
> * breakloop
> * syntax highlighting

All these should be (useful and) doable.

> * logo (do I have permission to use the official PARI/GP logo?)

You do.

> * TAB-completion like in GP (hard since the GP TAB-completion is really
> hard-wired for readline)

Shouldn't be so hard: a simple wrapper around parі_completion should do
the trick. Have a look at texmacs.c, in particular tm_get_line()
and tm_completion().  (Of course, libreadline is still required; but a
call to readline() is not.)

Cheers,

    K.B.
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux         Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~kbelabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]
`