robert-dodier / maxima-jupyter

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

"makelist() $" still printing an output #109

Closed CdeMills closed 2 years ago

CdeMills commented 2 years ago

Hello, in a Jupyter notebook, the following line generates some output: [Input 1] mylist: makelist(j*j, j, 1, 4)$ [Output 1] [1, 4, 9, 16]

while in maxima-console or xmaxima, this is not the case. Up to now, I only saw this with "makelist". Is it possible to avoid displaying its output ?

Regards

Pascal

robert-dodier commented 2 years ago

Hi Pascal, is it only makelist or is it that all $ inputs display the result?

A work-around is to enter (makelist(...), 0) $ so that if the result is displayed, it's only 0. I know that's clumsy.

CdeMills commented 2 years ago

Hello Robert, all the $ lines display their result. That's really annoying for 'makelist' returning long list. Your fix avoids this issues.

Thank you

Regards

Pascal

yitzchak commented 2 years ago

I probably broke this in the debugging PR. Looking now.

yitzchak commented 2 years ago

Fix found. PR submitted.

robert-dodier commented 2 years ago

I've merged the PR. Thanks Tarn!

yitzchak commented 2 years ago

Awesome. Thanks Robert.

CdeMills commented 2 years ago

I confirm this fix is working. Thank you all.

Pascal