yacas icon indicating copy to clipboard operation
yacas copied to clipboard

Running Yacas in Jupyter

Open carbonmetrics opened this issue 3 years ago • 2 comments

I have installed Yacas 1.9.2 on a Ubuntu Mate system 20.04 via sudo apt-get install yacas-kernel after adding the ppa from the download site and updating.

I don't get the Jupyter notebook to run Yacas. Running jupyter notebook in the terminal opens Jupyter, but without the option of starting a Yacas notebook.

How do I get Yacas to run in a Jupyter notebook?

carbonmetrics avatar Jul 22 '21 11:07 carbonmetrics

Hi,

This is because I haven't yet provided a script to automatically install the kernel in jupyter. To do that you need to:

  1. create directory ~/.local/share/jupyter/kernels/yacas
  2. in this directory create kernel.json file containing { "argv": [ "/usr/bin/yacas-kernel", "{connection_file}", "/usr/share/yacas/scripts" ], "display_name": "yacas", "language": "yacas" }

After that yacas should show up as an available kernel in the jupyter notebook.

Cheers, Grzesek

On Thu, Jul 22, 2021 at 1:15 PM carbonmetrics @.***> wrote:

I have installed Yacas 1.9.2 on a Ubuntu Mate system 20.04 via sudo apt-get install yacas-kernel after adding the ppa from the download site http://www.yacas.org/getting_started/downloads/ and updating.

I don't get the Jupyter notebook to run Yacas. Running jupyter notebook in the terminal opens Jupyter, but without the option of starting a Yacas notebook.

How do I get Yacas to run in a Jupyter notebook?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/grzegorzmazur/yacas/issues/335, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5IUYGHWNK2OCETCOWSC5LTY74WRANCNFSM5AZZHVHQ .

grzegorzmazur avatar Jul 22 '21 12:07 grzegorzmazur

Problem solved! Thanks!

carbonmetrics avatar Jul 23 '21 06:07 carbonmetrics