| Bill Allombert on Wed, 24 Jan 2024 12:35:30 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: interest for PARI/GP Jupyter notebook ? |
On Fri, Jan 12, 2024 at 10:52:26PM +0100, Bill Allombert wrote:
> On Thu, Oct 12, 2023 at 11:44:40AM +0200, Bill Allombert wrote:
> > On Fri, May 12, 2023 at 04:33:42PM +0200, Pascal Molin wrote:
> > > I started using pari-jupyter two months ago, and immediately switched to
> > > Edgar's version because I had problems with the main pari-jupyter
> > > (I do not remember precisely the issues, maybe it was slow or did not
> > > support threads). I also think a xeus version would be nice.
> > > Anyway I think I will use it on a regular basis now and could provide
> > > feedback from myself and from students, and a bit of testing.
> >
> > So I have made available of first draft of a XEUS-based GP kernel.
> > You can clone it as
> > git clone https://pari.math.u-bordeaux.fr/git/xeus-gp.git
> > Please do not ask me advices on how to compile it!
> >
> > "??" does not work because there is no C interface to it yet.
> > If you find other things that could work but does not, please tell me,
>
> I think the behaviour of ## inside gp_read_str_multiline does not seem
> what we would like it to be:
>
> ? install(gp_read_str_multiline,sf)
> ? gp_read_str_multiline("factor(2^256+1)\n##")
> *** last result computed in 0 ms.
> ? ##
> *** last result computed in 803 ms.
This is problematic.
## return the time of the last history entry.
So barring a redefinition of when history entries are created, this is
difficult to fix.
For example if cells contain
Cell 1
----
a = factor(2^128+1)
##
b = factor(2^256+1)
##
----
Cell 2
----
a = factor(2^128+1)
b = factor(2^256+1)
##
----
Cell 3
----
##
a = factor(2^128+1)
b = factor(2^256+1)
----
Cell 4
-----
##
-----
What should we output ?
Cheers,
Bill.