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 to the default location where
jupyter is looking for kernels. On linux systems local jupyter
configurations are located in
$HOME/.local/share/jupyter
. On OSX this is at$HOME/Library/Jupyter
and on windows it is%APPDATA%\jupyter
. Referring to this path as , you should do:
mkdir -p <jupyter-path>/kernels
cp -r sac <jupyter-path>/kernels
cp -r sac_tutorial <jupyter-path>/kernels
- Adjust the path in
<jupyter-path>/kernels/sac/kernel.json
and in<jupyter-path>/kernels/sac_tutorial/kernel.json
to point to the location of thekernel.py
file in this repository.
Enabling the sac2c on jupyter tutorial requires a few more steps:
- Install
nbextensions
for jupyter. - Now install the sac2c-jupyter mini tutorial:
mkdir -p <jupyter-path>/nbextensions/
cp -r nbextensions/* <jupyter-path>/nbextensions
- Enable the tutorial extensions:
jupyter nbextension enable sac_tutorial
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.