Coder Social home page Coder Social logo

calysto_processing's Introduction

calysto

Gitter Travis PyPI version

Libraries and Languages for Python and Jupyter

Homepage: http://calysto.github.io/

$ pip install calysto

OR

$ pip3 install calysto

You may also need to install:

  • libcairo2
  • libXrender
  • libfontconfig

On MacOS for graphics, you may also need:

  • brew install cairo

calysto_processing's People

Contributors

dsblank avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calysto_processing's Issues

import external Processing library - Reference Error

External libraries import but get ReferenceError: GetRequest is not defined when trying to instantiate an object.

See below for example:

import http.requests.*;
GetRequest get = new GetRequest("http://httprocessing.heroku.com");
get.send();
println("Reponse Content: " + get.getContent());
println("Reponse Content-Length Header: " + get.getHeader("Content-Length"));

PostRequest post = new PostRequest("http://httprocessing.heroku.com");
post.addData("name", "Rune");
post.send();
println("Reponse Content: " + post.getContent());
println("Reponse Content-Length Header: " + post.getHeader("Content-Length")

how to install calysto_processing?

Hi.
I'll try to do:

  1. install calysto_processing (in virtualenv through pip and git)
  2. point to processing-java
  3. run jupyter netbook

And after that I can't find processing in New list. What I missed?

importした時の動作について

importしたrandomでインスタンスが作成できませんが、これは固有の問題でしょうか?

import java.util.Random;

void setup(){
  randomSeed( 0 );
  for( int i = 0; i < 5; i++){
    println(  random( 1.0f ) );
  }  

  println("-----------------------");

  Random  rs  =  new  Random( 0 );
  for( int i = 0; i < 5; i++){
    println(  rs.nextFloat() );
  }
}
void draw(){
}

Sketch #34 state: ReferenceError: Random is not defined

0.12706408696249127
0.4680652036331594
0.9058290123939514
0.6254248928744346
0.36673190584406257

ReferenceError: Random is not defined

PDEでは問題なく動作します。

ImportError: kernel

I'm trying to install this in a fresh conda environment with just Jupyter installed, which leads to this exported spec. Running the pip command.

pip install --upgrade calysto-processing

When I do this, I get a series of errors, log gist here, and it looks like the install has failed at a glance. But, when I tried to install again, I realised it had actually left something in site-packages. I haven't finished the rest of the install and run the Jupyter server to see if it's actually working, but I'd rather get rid of the errors before continuing.

Unable to get calysto-processing to work in Binder

I've successfully gotten calysto-processing to work in a jupyter notebook on my own Mac laptop - it's very cool. Thanks!
However, I'm trying to get it to work on Binder and having no luck. When I put my notebook on github, and connect it in Binder, binder builds and launches, but Binder only has the python kernel installed. I'm unsure of how to tell Binder to use calysto-processing. Any ideas on how to do this? I'm new to Binder, and although I've looked at all their configuration files, I am lost on which configuration file to use and what to put in it to make calysto-processing work.
calysto-processing-binder

javascript error 'require is not defined' in Jupyter-lab

Hi,

I'm getting an error when running processing code in Jupyter-lab:

Javascript Error: require is not defined

Sketch #1:

But... things work just fine in Jupyter notebook... I could choose the Calysto Processing kernel and execute processing code and see the results on the notebook.

Any idea what went wrong? How to get it to work with jupyter-lab?

Here are my setup:
Jupyter-lab v0.35.1
Jupyter v4.3.0
Processing v3.4
Ubuntu 16.04

Pls let me know if you need any details, thx!

Error No library found for processing.table

I've trying to install calysto_processing in my own local Mac OSX Jupyter installation.

I've done the following:

Installed Calysto-processing:

sudo -H pip3 install metakernel
sudo -H pip3 install calysto
sudo -H pip3 install --upgrade calysto-processing

Downloaded Processing 2.2.1 for OSX:

Then when I ran Jupyter and created a new Calysto-Processing notebook to run the example:
jupyter notebook

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()) {
        int pop = row.getInt("Population");
        if (pop > retval)
            retval = pop;
    }
    return retval;
}

I got an error:

No library found for processing.table
Libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder.
 Line     +---------------------------------------------------------------------------
    1:    | import processing.table.*;
    2:    | 
    3:    | Table table;
          +---------------------------------------------------------------------------

Compile error in line 0: The package “processing.table” does not exist. You might be missing a library.

findMax() in Extensions.ipynb

It looks findMax() in Extensions.ipynb doesn´t returns highest population value from CSV table.

698473 returned but 6595779 expected.

Installation documentation update

In README.md, I believe "Edit the install calysto_processing/kernel.js to point processing_java." would be clearer as "Edit the installed calysto_processing/kernel.json to point to the processing_java command line tool". Additionally, you may want to add a note for Mac users that processing_java is not installed by default, but rather needs to be installed from the Processing environment by selecting 'Install "processing_java"' under the Tools menu.

Can't uninstall calysto_processing from jupyter notebooks

I was looking for a way to run "Processing in Python" scripts out of Jupyter notebooks so
I installed calysto_processing according to the instructions. When I figured out that it was instead wanting Javascript I tried removing it but I could not scrub the reference from the Jupyter notebook menu New-->Calysto Processing, shown below.

I tried uninstalling all the packages that conda and pip had listed, but the reference still wouldn't disappear. This took all evening. Any ideas? Thanks.
screen shot 2018-04-16 at 10 35 31 pm

no kernel.js?

Hi.

I am trying to install calysto-processing with the command "pip install --upgrade calysto-processing", as advised in README.MD. Everything looks good, all dependencies are good, so I assume that the installation is OK.

Continuing to the next step, I now have to "edit the installed calysto_processing/kernel.js to include the full path to the processing_java command." but I don't seem to have any kernel.js file on my system. Where should I look for that? I can't find any calysto_processing folder either.

When I start jupyter, I can still only make python notebooks.

(I am using anaconda3 on windows, if that makes any difference)

Sorry if this is not the right place for this, I tried to find another place for support, but couldn't find any. Please redirect me, if such a place exists!

Thank you for your help.

Processing.js has been discontinued

Hi,

I noticed that this project was based on Processing.js and just thought I'd let you know that I discontinued Processing.js December 2018. If this project is still being maintained, that's probably something worth being aware of, although it looks like the code's not been touched for a few years, so it might be worth mentioning that the project's no longer actively maintained, and that Pjs was discontinued so is unlikely to be receive any updates?

Unable to start calysto_processing

calypso jupiter doesn't appear in my notebook choices
I installed calypso and processing without a problem.
The environment variable must be tripping me up. I thought I added the variable, but I don't think the program knows I did so.
Can you be more explicit (step by step instructions) with how, exactly, to set up this variable and link it to the program? I'd appreciate the help.
Thank you

Python Mode for Processing

Calysto Processing is a fantastic way to bring interactive canvases to Jupyter. Is there a way to enable Processing's Python Mode?

Ideally I'd love to be able to continue using the IPython kernel for R&D as I have been, but have access to the interactive and animated canvases of Processing.

jupyter error from reopen notebook with calysto_processing kernel

I installed calysto_processing following the instructions in this repository, the execution of the kernel is fine, but when I save a notebook and reopen Jupyter show this error

TypeError: ext.toLowerCase is not a function

and the console says [MetaKernelApp] ERROR | No such comm target registered: jupyter.widget.version

thanks a lot

I have this installation

jupyter-notebook : 6.0.3
qtconsole        : 4.7.4
ipython          : 7.16.1
ipykernel        : 5.3.1
jupyter client   : 6.1.6
jupyter lab      : 2.2.2
nbconvert        : 5.6.1
ipywidgets       : 6.0.0
nbformat         : 5.0.7
traitlets        : 4.3.3```

pip install calysto_processing not working

$ pip install calysto_processing
Collecting calysto-processing
  Using cached calysto_processing-2.0.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-fHRl7Y/calysto-processing/setup.py", line 49, in <module>
        with open('README.md') as f:
    IOError: [Errno 2] No such file or directory: 'README.md'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.