1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

nodebox scripts running on webpages?

Posted by chad on Feb 08, 2008

Is there any way on a python enabled webhost to serve up nodebox created scripts like CGI/PHP?


 
Posted by anonymous on Feb 09, 2008

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!



Posted by chad on Feb 09, 2008

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.



Posted by fdb on Feb 11, 2008

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



Posted by Stott on Sep 28, 2008

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.



Posted by Zane Selvans on Aug 06, 2009

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 :)