Do you mind sharing the code you are using?
Looks like Octave interface is restarted for each cell:
https://github.com/sagemath/sagecell/blob/b63b8732f3018a0e9588c35656f2f4bf27a13968/js/session.js#L330
which I have written a year ago while working on plotting. One of the
reasons is likely to pick up proper CWD, perhaps there is a better solution
(like all interfaces in Sage could wait for picking up CWD until they are
actually using it...)
On Tuesday, 14 April 2020 11:24:37 UTC-6, Ingo Dahn wrote:
>
> I have 2 cells on one page configured with
> sagecell.makeSagecell({
> languages=["octave"],
> linked: true,
> })
>
> But variables set in the first cell evaluated first are undefined in the
> second cell when evaluated second. When I change languages to ["sage"] both
> cells are linked correctly. I checked that the Octave code works correctly
> when the content of both cells is executed in one cell.
>
--
You received this message because you are subscribed to the Google Groups
"sage-cell" 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/sage-cell/fa8f02b5-7b4b-4d5f-927c-3a6e433b4e16%40googlegroups.com.