This repository contains jupyter-related tools for SaC.
Installing the kernel requires the following steps:
- Install sac with jupyter support.
- Copy the content of this repository as follows:
mkdir -p $HOME/.local/share/jupyter/kernels
cp -r sac $HOME/.local/share/jupyter/kernels/
- Adjust the path in
~/.local/share/jupyter/kernels/sac/kernel.json
to point to the location of thekernel.py
file in this repository. - In
kernel.py
adjust the path tosac2c
line 105.
At some point we hope to add these files to the sac2c packages so the installation process would be significantly simpler.
Running sac kernel is as simple as:
jupyter notebook
and in the web interface you set the kernel language to SaC.
On the terminal you can run:
ipython console --kernel=sac
If you do so you may want to install this lexer https://github.com/SacBase/sac-pygments to get syntax highlighting.