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
```
Next, install Processing 2 from https://processing.org/download/
Edit the install calysto_processing/kernel.js to point `processing_java`.
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
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
```
Next, install Processing 2 from https://processing.org/download/
Edit the install calysto_processing/kernel.js to point `processing_java`.
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.2.zip
(14.2 kB
view details)
calysto_processing-2.0.2.tar.gz
(12.7 kB
view details)
File details
Details for the file calysto_processing-2.0.2.zip
.
File metadata
- Download URL: calysto_processing-2.0.2.zip
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 822c7cedd1bdd344c1c00392438b5002116dc9730090e69d0a262488ebcdb156 |
|
MD5 | 61729c641e9f90f5f00e2514fdd2e660 |
|
BLAKE2b-256 | 0a3cc36aa479814aa42d173354b75ebba50df5fa1f14419b2b900254bcc42b57 |
File details
Details for the file calysto_processing-2.0.2.tar.gz
.
File metadata
- Download URL: calysto_processing-2.0.2.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce18c2d2b016c8e39ef73323cbd38628f87fa2f8fadf44f4cb9d51f67e6303d0 |
|
MD5 | ebb340cd166988948c0ef1d7adfe3443 |
|
BLAKE2b-256 | 8620d997b715460acc94d26f78588b66458162f2c623593bc7782690294f94c7 |