Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-20 Thread Ondřej Čertík
On Tue, Mar 18, 2014 at 3:20 AM, SAHIL SHEKHAWAT sahilshekhawa...@gmail.com wrote: Its been copyrighted by Continuum Analytics, Inc.. will that be problem? No, that's not a problem, you simply copy their BSD license into your code if you are reusing it. Ondrej -- You received this message

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-20 Thread SAHIL SHEKHAWAT
Instead of using Bokeh i will use their concept to create our backend which will render plots into browser like they do by using a server. i will write that server on my own just to get the static files. And i will create link between json and server so that the process can be stopped after

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-20 Thread SAHIL SHEKHAWAT
And also, i will use mathbox.js instead of Three.js as they already have the code base which i intend to create, so writing them on my own will not be a good choice. On Thu, Mar 20, 2014 at 1:01 PM, SAHIL SHEKHAWAT sahilshekhawa...@gmail.com wrote: Instead of using Bokeh i will use their

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-20 Thread SAHIL SHEKHAWAT
my proposal is at https://github.com/sympy/sympy/wiki/GSoC-2014-Application-Sahil-Shekhawat:-Web-based-backend-for-SymPy's-plotting-module-and-3D-plotting please spare some time to suggest changes in it. On Thu, Mar 20, 2014 at 1:04 PM, SAHIL SHEKHAWAT sahilshekhawa...@gmail.com wrote: And

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread Aaron Meurer
SymPy is also copyrighted. The important thing is the license, which is BSD (the same as SymPy), which basically says you can take the source code and do whatever you want with it (read it, it's quite short). The dependencies make it not suitable for the App Engine (though we don't *have* to

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread SAHIL SHEKHAWAT
Aaron, But i have proposed something different, without using any library other than three.js. can you please take a look at https://github.com/sympy/sympy/wiki/GSoC-2014-Application-Sahil-Shekhawat%3A-Three.js-backend-for-SymPy%27s-plotting-module . I just want to user three.js and create a

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread Jason Moore
Is there any reason not to use MathBox.js? Seems like you'll have to write very similar code to what is already implemented there. Jason moorepants.info +01 530-601-9791 On Wed, Mar 19, 2014 at 9:07 PM, SAHIL SHEKHAWAT sahilshekhawa...@gmail.com wrote: Aaron, But i have proposed something

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread SAHIL SHEKHAWAT
Yeah! That will be nice! On Thu, Mar 20, 2014 at 8:02 AM, Jason Moore moorepa...@gmail.com wrote: Is there any reason not to use MathBox.js? Seems like you'll have to write very similar code to what is already implemented there. Jason moorepants.info +01 530-601-9791 On Wed, Mar 19,

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread SAHIL SHEKHAWAT
And I can focus more on creating a python base which will make the JSON rather than concentrating on graphs and animations (Three.js) On Thu, Mar 20, 2014 at 8:09 AM, SAHIL SHEKHAWAT sahilshekhawa...@gmail.com wrote: Yeah! That will be nice! On Thu, Mar 20, 2014 at 8:02 AM, Jason Moore

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread SAHIL SHEKHAWAT
Jason, I have my proposal at https://github.com/sympy/sympy/wiki/GSoC-2014-Application-Sahil-Shekhawat%3A-Three.js-backend-for-SymPy%27s-plotting-module Its raw but if you can advice me, it would be nice. On Thu, Mar 20, 2014 at 8:11 AM, SAHIL SHEKHAWAT sahilshekhawa...@gmail.com wrote: And I

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread SAHIL SHEKHAWAT
I don't have much time left for the deadline. On Thu, Mar 20, 2014 at 8:13 AM, SAHIL SHEKHAWAT sahilshekhawa...@gmail.com wrote: Jason, I have my proposal at https://github.com/sympy/sympy/wiki/GSoC-2014-Application-Sahil-Shekhawat%3A-Three.js-backend-for-SymPy%27s-plotting-module Its raw

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread David Li
And I can focus more on creating a python base which will make the JSON rather than concentrating on graphs and animations (Three.js) Doesn't SymPy already essentially have this? E.g. from sympy import * from sympy.plotting.plot import SurfaceOver2DRangeSeries x, y = symbols('x y')

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread SAHIL SHEKHAWAT
I completely agree with you david but 1.we still need the cameras, lights, canvas, 2.we are using mathbox.js, I guess that json for it will be different. 3.Creating a server for the local users which will render the static files and javascript like Bokeh Thanks for pointing out that we also have

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread SAHIL SHEKHAWAT
David, Then what you suggest i should do to intoduce 3D plotting in Sympy or Gamma/Live On Thu, Mar 20, 2014 at 8:23 AM, SAHIL SHEKHAWAT sahilshekhawa...@gmail.com wrote: I completely agree with you david but 1.we still need the cameras, lights, canvas, 2.we are using mathbox.js, I guess

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread David Li
Sahil, I was just unsure what else exactly was needed on the Python end - I didn't account for the lighting, etc. David On Wednesday, March 19, 2014 7:56:44 PM UTC-7, SAHIL SHEKHAWAT wrote: David, Then what you suggest i should do to intoduce 3D plotting in Sympy or Gamma/Live On Thu,

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread SAHIL SHEKHAWAT
It wouldn't be much but along with other things it will be like creating a separate base on which many other libraries can also be used like server. And it will introduce 3D plotting in Gamma and Live also. Thanks for pointing that out! Overall how do you think the idea is? On Thu, Mar 20, 2014

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread David Li
One concern I have - does this mean we are bundling a copy of Three.js/MathBox with SymPy now? Or are we going to rely on a third party CDN? David -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread SAHIL SHEKHAWAT
I think we include the Mathbox.js in Sympy to avoid any more dependencies, so that a local user can plot right away.. What you say? On Thu, Mar 20, 2014 at 8:37 AM, David Li li.david...@gmail.com wrote: One concern I have - does this mean we are bundling a copy of Three.js/MathBox with SymPy

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread SAHIL SHEKHAWAT
The problem with mathbox.js is that it is tested only on chrome and even then it's example http://acko.net/files/mathbox/MathBox.js/examples/3D.htmlis not rendering at all in chrome on linux I tried firefox also but no luck. On Thu, Mar 20, 2014 at 8:40 AM, SAHIL SHEKHAWAT

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-19 Thread SAHIL SHEKHAWAT
And in Firefox also, the rendering of other examples is a bit laggy. So, should i still go ahead with Mathbox.js or just use Three.js and write the codes for Three.js which will be do same thing as Mathbox.js I can also change the mathbox.js to suit us better. Any suggestion? On Thu, Mar 20,

[sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
I have been working on a proposal to implement 3D plotting in SymPyGamma, and Jason pointed me to the importance of d3.js and Three.js backend in the Sympy itself. so, i want to discuss the idea.As only four days are left please reply. My motivation is

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Christophe Bal
Hello, you can also look at Bokeh http://bokeh.pydata.org/. Christophe BAL 2014-03-18 8:50 GMT+01:00 SAHIL SHEKHAWAT sahilshekhawa...@gmail.com: I have been working on a proposal to implement 3D plotting in SymPyGamma, and Jason pointed me to the importance of d3.js and Three.js backend in

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
Its been copyrighted by Continuum Analytics, Inc.. will that be problem? But it looks good! On Tue, Mar 18, 2014 at 2:45 PM, Christophe Bal projet...@gmail.com wrote: Hello, you can also look at Bokeh http://bokeh.pydata.org/. Christophe BAL 2014-03-18 8:50 GMT+01:00 SAHIL SHEKHAWAT

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
But sadly it has a lot of dependencies - NumPy - Flask - Redis - Requests - gevent - gevent-websocket - Pandas On Tue, Mar 18, 2014 at 2:50 PM, SAHIL SHEKHAWAT sahilshekhawa...@gmail.com wrote: Its been copyrighted by Continuum Analytics, Inc.. will that be problem?

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Christophe Bal
This dependencies are due to the fact that this project focuses on datas. I've pointed to this project just for the philosophy of this project. If you want to propose a JS viewer, you just have to translate Sympy plot to the syntax of D3.js and/or three.js or another free JS library. This is not

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
Thanks a lot Christophe! I misunderstood what you said..This look nice Also, With three.js we always have an option to fall back to html canvas which every browser support ( specially IE7 ). I don't think that will a problem. What you say? On Tuesday, March 18, 2014 3:16:43 PM UTC+5:30,

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Christophe Bal
With three.js we always have an option to fall back to html canvas which every browser support ( specially IE7 ). I didn't know that. The problem that you will met with three.js is the suport of formulas. 2014-03-18 10:52 GMT+01:00 SAHIL SHEKHAWAT sahilshekhawa...@gmail.com: Thanks a lot

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
Can you please elaborate a bit about function's support of Three.js i am a bit unclear.. you can look here http://stemkoski.github.io/Three.js/Graphulus-Function.html this example is able to plot function ( which the javascript support). and we have another option to use mathbox.js

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Christophe Bal
Sorry for the poorness of my english. Indeed when I wrote formulas I think about legends containing formulas. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Christophe Bal
This MathBox is just amazing ! 2014-03-18 11:12 GMT+01:00 Christophe Bal projet...@gmail.com: Sorry for the poorness of my english. Indeed when I wrote formulas I think about legends containing formulas. -- You received this message because you are subscribed to the Google Groups sympy

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
Really! :D Then i guess we can use it instead of Three.js. They have used tQuery with Three.js and also have MIT license. and most of the things are ready-made. On Tuesday, March 18, 2014 3:48:46 PM UTC+5:30, Christophe Bal wrote: This MathBox is just amazing ! 2014-03-18 11:12 GMT+01:00

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
One more important thing, By actually creating a JS viewer i can probably provide an alternative of matplotlib and to interpret the javascript code produced from sympy i can: 1) Use libraries like Rhino and Spidermonkey 2) Use browser. 3) Just leave the code as it is and applications like Live or

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Christophe Bal
Do not forget that fixed pictures are useful for paper reports. On the other hand, I think that using web browsers for sliders is the better solution to use actually because of the dynamical features and the JS library that helps to build such sliders. -- You received this message because you

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
Indeed they are and for that there is already an option of downloading from matplotlib's support. We can give an option to view the plot in the web browser and Live and Gamma are always there to help us. They can render the plots very nicely. I think it is very significant and should be my

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Jason Moore
There are a lot people working on plotting in the browser, many of them tied to python execution. There probably isn't much reason to reinvent the wheel here. This is another more simple project that implements a d3.js backend for matplotlib: mpld3.github.io . Also there matplotlib has a webagg

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
So, how can i improve sympy then? I mean you said that we want 3D plotting for SymPy as a whole. so , how can i improve that? On Tue, Mar 18, 2014 at 6:17 PM, Jason Moore moorepa...@gmail.com wrote: There are a lot people working on plotting in the browser, many of them tied to python

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
sorry for the slang but if a lot of people are working on the similar project then what is there that i can work on! I talked to Ondrej and David and they said that implementing 3D plotting for Gamma is fine. Please suggest something. On Tue, Mar 18, 2014 at 6:32 PM, SAHIL SHEKHAWAT

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Jason Moore
Correction: My hunch is that 99% of sympy use is local, ... Jason moorepants.info +01 530-601-9791 On Tue, Mar 18, 2014 at 10:25 AM, Jason Moore moorepa...@gmail.com wrote: My suggestion on melange was just to mention that if you only focus on 3D plotting for SymPy Gamma then we are missing

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Jason Moore
My suggestion on melange was just to mention that if you only focus on 3D plotting for SymPy Gamma then we are missing the majority of SymPy users. My hunch is that 99% of people who use SymPy use it locally, not from SymPy live or SymPy Gamma. If we currently don't support 3D plotting locally,

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
But we do support 3D plotting by matplotlib and also you mentioned that a lot of people are working on making it browser compatible. Sorry if i am irritating but i just want to clarify. On Tue, Mar 18, 2014 at 7:55 PM, Jason Moore moorepa...@gmail.com wrote: My suggestion on melange was just

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Jason Moore
If we already use matplotlib for 3D plotting, then a long term solution to this is to add three.js to the web backend of any one of the new plotting libraries that are popping up (bokeh, mpld3, matplotlib's webagg backend). Then you can simply use the library for the backend to the matplotlib

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Jason Moore
But even if you implement something with Mathbox.js then it would be nice if users can use it locally or through Live/Gamma. That is the approach with took with pydy-viz. Right now we can run them locally and if you want embed it in a website you can. Jason moorepants.info +01 530-601-9791 On

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
can you please point me out the direction where i can learn how PyDy works? On Tue, Mar 18, 2014 at 8:28 PM, Jason Moore moorepa...@gmail.com wrote: But even if you implement something with Mathbox.js then it would be nice if users can use it locally or through Live/Gamma. That is the

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Jason Moore
https://github.com/pydy/pydy-viz We basically generate data on the python side, then write a json file to disk, then we have a generic html/js/css template that uses three.js to load in all the data from the json file and create a scene. The json file is the communication between python and js.

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
That exactly what i was looking for! I think i will go by this concept only...its awesome! about using Json mathics guys also use json to render 3D plotting for Three.js, Its good enough and works. Thanks again. :) On Tue, Mar 18, 2014 at 8:52 PM, Jason Moore moorepa...@gmail.com wrote:

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread David Li
Just some thoughts: - I agree with Jason that ultimately, integrating a library specifically focused on Python and web plotting is the best course for SymPy and Gamma/Live in general. - Gamma/Live's problem is that it runs on App Engine - anything that requires a server

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
David, So, what your thought are,? should i write the codes into Gamma and Live or into Sympy because both can be done and both will use Json which the Three.js will use anyways! * By implementing into Sympy we can make the plots locally like PyDy and then also create a html element which will

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
one more thing, for Three.js we need not to worry about panning, so according to me there isn't much difference While implementing in Sympy has an extra advantage but also we will need to figure out some ways to do things but with implementing into SymPyGamma and Live we are implementing codes for

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Mateusz Paprocki
Hi, On 18 March 2014 17:12, David Li li.david...@gmail.com wrote: Just some thoughts: I agree with Jason that ultimately, integrating a library specifically focused on Python and web plotting is the best course for SymPy and Gamma/Live in general. Gamma/Live's problem is that it runs on

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Jason Moore
Also, note that even though WebGL is supported in most of the latest browser versions, this will not work with a lot of peoples systems. We've had tons of trouble getting the visualizations to run cross browser and cross platform. I still haven't figured out MAC yet.

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread SAHIL SHEKHAWAT
Jason, But all the browser do support HTML Canvas right? and Three.js uses it as a fallback option if there is no WebGL. On Tue, Mar 18, 2014 at 10:38 PM, Jason Moore moorepa...@gmail.com wrote: Also, note that even though WebGL is supported in most of the latest browser versions, this will

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Christophe Bal
I have a Mac and I can see all the official examples of Three.js. Christophe BAL 2014-03-18 18:13 GMT+01:00 SAHIL SHEKHAWAT sahilshekhawa...@gmail.com: Jason, But all the browser do support HTML Canvas right? and Three.js uses it as a fallback option if there is no WebGL. On Tue, Mar 18,

Re: [sympy] [GSoC] D3.js and Three.js backend for our plotting module

2014-03-18 Thread Jason Moore
I don't know if it is that simple. If it is you are welcome to fixed pydy-viz with the solution. Jason moorepants.info +01 530-601-9791 On Tue, Mar 18, 2014 at 1:13 PM, SAHIL SHEKHAWAT sahilshekhawa...@gmail.com wrote: Jason, But all the browser do support HTML Canvas right? and Three.js