Using C in Python
=================

The repository contains several examples that uses Cython. Here is a
description of what each of them contain


example0:
a simple with the setup.py that allows to build extension
This is a simple example with a setup.py

example1:
interfacing C code
This is an example is some pure C code is interfaced through Cython

example2:
julia sets (see also julia_sets.sws)
run ipython (for example through "sage -ipython" in a console). Then run

>>> import pyximport
>>> pyximport.install()

Those two lines allow to import cython modules. Compilation is transparent.

>>> import julia             # julia is a pyx file
>>> julia.julia(-.8,.1,800)

primes_cython.sws:
Eratosthene sieve for generating primes

julia_set.sws:
how to draw julia sets in a worksheet (see also example2).



