8000 GitHub - sbliven/sac-jupyter: A jupyter kernel for interactive SaC development
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sbliven/sac-jupyter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jupyter kernel for SaC

This repository contains jupyter-related tools for SaC.

Installation

Installing the kernel requires the following steps:

  1. Install sac with jupyter support.
  2. 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 the path as , you should do:
mkdir -p <jupyter-path>/kernels
cp -r sac <jupyter-path>/kernels
cp -r sac_tutorial <jupyter-path>/kernels
  1. 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 the kernel.py file in this repository.
  2. In kernel.py adjust the path to sac2c line 105.
  3. Install nbextensions for jupyter.
  4. Now install the tutorial:
mkdir -p <jupyter-path>/nbextensions/
cp -r nbextensions/* <jupyter-path>/nbextensions
  1. Enable the tutorial:
jupyter nbextension enable sac_tutorial/main

At some point we hope to add these files to the sac2c packages so the installation process would be significantly simpler.

Running

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.

About

A jupyter kernel for interactive SaC development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 64.1%
  • JavaScript 35.9%
0