Maurizio wrote:
> Jason,
> thank you for your quick response.
> 
> Actually, I can't check for any spkg existence, since there isn't any
> (still...). What I want, is to plugin another javascript (flot) in my
> notebook basically, and then make it load from the notebook itself,
> passing some data (vectors of point, for 2d plotting) without having
> to use intemediate html() function (I think that would make too much
> overhead, isn't it?)
> 
> Could you please be a little bit more precise to show me where to look
> at for an example?
> I would be very grateful for that!
> 
> Once I get a readable example, I think I could go along by myself.
> 

Maurizio,

I think that I would start out by getting a working example using 
html(), so that other people could easily try it.  Here's what I would do:

  * upgrade to sage 3.3, since a lot of the locations of javascript 
things changed in 3.3.

  * Put the javascript library into $SAGE_ROOT/local/notebook/javascript 
  (you can see the other javascript libraries are in that directory too).

  * Now you can load a javascript library by doing

<script type="text/javascript" 
src="/javascript_local/my_js_dir/my_js_file.js"></script>


(/javascript_local is mapped to $SAGE_ROOT/local/notebook/javascript)

  * Do an example using html() to load the javascript library and call 
the necessary javascript functions.  This keeps everything in the 
notebook so people get a feel for how to interact with the library, and 
it saves you from having to dig into the internals of how Sage Graphics 
objects are displayed.


Thanks,

Jason


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to