grzegorzmazur / yacas

Computer calculations made easy
http://www.yacas.org
GNU Lesser General Public License v2.1
130 stars 24 forks source link

Running Yacas in Jupyter #335

Open carbonmetrics opened 3 years ago

carbonmetrics commented 3 years ago

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?

grzegorzmazur commented 3 years ago

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 .

carbonmetrics commented 3 years ago

Problem solved! Thanks!