Skip to content
mudkip201 edited this page Dec 31, 2017 · 6 revisions

If you are going to write code in Pyt, you'll need Python 2.7.13, numpy, and scipy.

There are two ways to run code in Pyt. It currently only handles when the code is in UTF-8, but an interpreter for when the code is encoded à la the code page is in the works.


1. Inline in another python file

Start a python file with:

# -*- coding: utf-8 -*-
import interpreter2

Then, to run the code, you'll need to do:

interpreter2.parse(u"<code here>",[])

2. Run from a file

With Pyt code stored in a file with nothing else in it (doesn't matter the name; the convention is to end it with '.pyt'), run 'pyt.py' as follows:

python pyt.py -f <filename>