robert-dodier / maxima-jupyter

A Maxima kernel for Jupyter, based on CL-Jupyter (Common Lisp kernel)
Other
185 stars 31 forks source link

Embedded plots not rendered - Jupiter-lab #118

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hello, I just installed a fresh maxima-jupiter kernel over Jupiter-lab following web instructions (Maxima 5.46.0 using Lisp SBCL 2.1.11.debian, Quicklisp installed, over Ubuntu 22.04). Jupiter-lab shows the Maxima kernel and it seems to work but I cannot embed plots inside the notebook (i.e. draw2d, plot2d). If I just type in a cell plot2d(...) I get a pop-up window as expected but if a "file-mode" is specified just the temporary file path is shown instad of the plot. The temporary file has been created in the right path but it is not rendered. I tried a new installation on a different Ubuntu platform achieving the same result. provaMaxima.pdf May be the issue is trivial but I am not able to sort it out. I would appreciate some hint. Thank you.

yitzchak commented 1 year ago

This is due to changes in the return format of plot2d. Submitted a PR to fix.

ghost commented 1 year ago

In the meantime, I tried to add the changes you suggested in my copy of the repository and it fully solves my issue. Of course, I am going to install the officially fixed release once available. Thanks a lot for your prompt reply and kind support. provaMaxima-4.pdf