Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

stencila/pyla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

134 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ Pyla

Python interpreter for executable documents

Code coverage Code style PyPI Docs

โš ๏ธ Deprecated

This project is deprecated and no longer maintained. At the time of writing, we are instead focussing on using tree-sitter for sematic analysis, and ipykernel for execution, of Python code. Please see, our main repository, stencila/stencila for further information.

๐Ÿ“ฆ Install

Pyla is available as a Python package,

pip3 install stencila-pyla

โšก Use

Register Pyla so that it can be discovered by other executors on your machine,

python3 -m stencila.pyla register

Then, if you have executa installed then you can run it using the repl command and specifying python as the starting language,

executa repl python

โš’๏ธ Develop

Setup

To install the packages needed for development, run make setup or,

pip3 install --user --upgrade -r requirements-dev.txt

Code formatting

We use Black to maintain a consistent code formatting style. To run it use black . or make format.

Running

There are two options to run the interpreter without installing this package (which can be useful when developing).

Use setup.py develop

Run python3 setup.py develop which will link this library into your site packages directory. You can then execute documents with the above command.

Change into stencila folder

You can run the interpreter as a module by changing into the stencila directory first, and then omitting the stencila namespace:

$ cd stencila
$ python3 -m pyla execute <inputfile> <outputfile> [parameters]

About

๐Ÿ Python interpreter for executable documents

Topics

Resources

Stars

Watchers

Forks

Contributors