Probably the best way to do this is install a Console version of NB onto your server, and then use Python/CGI/PHP scripts to call it.
Great idea, by the way!
that would require a Mac OSX Server, wouldn't it? I was hoping to use Apache's mod_python or Python Server Pages to do it.
A different view...
Processing creates .jar files... Maybe something like that could work, too.
The question is whether you want to run the script on the client or on the server.
For the server: I believe the Console solution is the best I can advise right now as well. Since a cross-platform of NodeBox doesn't exist (yet), this would require Mac OS X (Server or regular doesn't matter).
For the client: There is no way to run a NodeBox script interactively from a web page. That would require a Python web plugin, which doesn't exist, and frankly, would be a security nightmare if implemeted naively.
Processing can work this way because it uses Java applets, which is a plugin most people have installed. The Python community doesn't have such a plugin.
My guess would be on the server for the short term. This is something you can write easily in an afternoon or so. It would require a Mac to render on, but would be a great experiment to have fun with.
Kind regards,
Frederik
You might be able to adapt Jython (www.jython.org) for this somehow, running Python directly on the Java VM (in the browser). This is the approach that is used by GUESS (graphexploration.cond.org), a Graph Exploration System that allows interactive Python-based analysis of graphs through a browser. It wouldn't require a special plugin or server modification.
I know this thread is old, but I just came across this amazing HTML 5 demo and it immediately made be think of NodeBox... and an Apache mod_nodebox or something similar :)
nodebox scripts running on webpages?
Posted by chad on Feb 08, 2008Is there any way on a python enabled webhost to serve up nodebox created scripts like CGI/PHP?