Skip to main content

A ProcessingJS kernel for Jupyter

Project description

**Calysto Processing** is the merging of [ProcessingJS](http://processingjs.org/) with [Project Jupyter](http://jupyter.org/) (aka IPython). Processing Sketches are entered into Jupyter notebook cells, and even run in rendered notebooks. Sketches can be paused, and stepped one draw() at a time.

Because Calysto Processing uses [MetaKernel](https://github.com/Calysto/metakernel/blob/master/README.rst), it has a fully-supported set of "magics"---meta-commands for additional functionality. A list of magics can be seen at [MetaKernel Magics](https://github.com/Calysto/metakernel/blob/master/metakernel/magics/README.md).

Calysto Processing in use:

* [CS110: Introduction to Computing](http://jupyter.cs.brynmawr.edu/hub/dblank/public/CS110%20Intro%20to%20Computing/2015/Syllabus.ipynb)
* [Video](https://www.youtube.com/watch?v=V4TzARh-ClY)

You can install Calysto Processing with:

```
pip install --upgrade calysto-processing
```

or in the system kernels with:

```
sudo pip install --upgrade calysto-processing
```

Use it in the notebook with:

```
ipython notebook
```

and then select `Calysto Processing` for a new notebook.

Calysto Processing also has an enhancement: Tables, and some related functions:

```java
import processing.table.*;

Table table;

void setup() {
table = loadTable("test.csv", "header");
println(table.getRowCount() + " total rows in table");
}

long findMax() {
int retval = 0;
for (TableRow row : table.rows()) {
pop = row.getInt("Population");
if (pop > retval)
retval = pop;
}
return retval;
}
```

Table-related classes and methods:

* loadTable(CSV_FILNAME, "header");
* Table class
* TableRow class
* table.rows() - returns iterator for use with for(TableRow row : table.rows()) {...}
* row.getInt(COLUMN_NAME)
* row.getString(COLUMN_NAME)
* row.getFloat(COLUMN_NAME)

See source for more details.

Requires:

* ipython-3.0
* Python2 or Python3
* metakernel (installed with pip)
* calysto (installed with pip)

Calysto Processing supports:

* MetaKernel Magics
* All of ProcessingJS, plus pause/restart and stepper

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

calysto_processing-2.0.1.zip (8.7 kB view details)

Uploaded Source

calysto_processing-2.0.1.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file calysto_processing-2.0.1.zip.

File metadata

File hashes

Hashes for calysto_processing-2.0.1.zip
Algorithm Hash digest
SHA256 4c6aac2513697fd5f2b4d2fd6d292a2d2d88860f73445bffa6552fb9ccdfb737
MD5 1f4e3ef5ae3a91d6c129026da578cdc2
BLAKE2b-256 b81b4997de2206a5025ccde408840fc19373543b334ea950c70a5ce4cf5dac4d

See more details on using hashes here.

File details

Details for the file calysto_processing-2.0.1.tar.gz.

File metadata

File hashes

Hashes for calysto_processing-2.0.1.tar.gz
Algorithm Hash digest
SHA256 1f9fea6e707b967ac0d71efcb81b446e87701d3727481da7f8633397ccd08513
MD5 3a89346425fea16ff10526de716f9088
BLAKE2b-256 e4ed1f0ee28f9a93bc7e250ddfa0b02e860dcf69e47014cf0ae22d7df2525987

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page