Widgets in SymPyGaama

54 views
Skip to first unread message

SAHIL SHEKHAWAT

unread,
Mar 26, 2014, 9:33:33 AM3/26/14
to sy...@googlegroups.com
I want to add widgets in SymPyGamma so that user can:
1)  Share a particular card or the entire result by creating a GIST as IPython Notebook.
     I have already done significant work on this issue, ( which i left in the middle due to my gsoc proposal ). So, i need to finish that so that it can be included in this part.
     As Gamma uses JavaScript for the calculating the JSON  of the result "card" i will create a new view which will calculate "card" JSON using python so that it can be 
     converted  to IPython Notebook. This will result in recalculations but Any better solution???
2)  Copy the result as plain text.
    Using the view created for calculations of card Json, i can also add functionality to copy the result text as plain text. I will just need to parse that json which i am 
    already doing for ipython notebook.
3)  Zoom the result card.
   Currently we do support enlarging the result which i will integrate into the widgets.
4)  Downloading the results
   We can provide the option to download the result as Latex ,IPython notebook, SymPy Codes and HTML. We already calculate 3/4 things in Gamma, why not give it as an
   option to the user??

I will use jQuery UI for the widgets!
Any suggestion???

Ondřej Čertík

unread,
Mar 26, 2014, 1:42:03 PM3/26/14
to sympy
Hi Sahil,
I just want to say that I think all these are great ideas to implement.

Ondrej

>
> I will use jQuery UI for the widgets!
> Any suggestion???
>
> --
> 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 sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/73cf3cc0-7abb-4567-93fd-f5b4d46b9c00%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

SAHIL SHEKHAWAT

unread,
Mar 26, 2014, 1:53:15 PM3/26/14
to sy...@googlegroups.com
Thanks Ondřej for confirming! I am working on the gui right now. Will soon send a PR.
Thanks!!

Aaron Meurer

unread,
Mar 26, 2014, 3:17:18 PM3/26/14
to sy...@googlegroups.com
Note that for the math, zooming is already supported directly in
MathJax (right click on the math).

Aaron Meurer
> https://groups.google.com/d/msgid/sympy/97d988c2-2f2e-41d5-91c2-8b8380917507%40googlegroups.com.

SAHIL SHEKHAWAT

unread,
Mar 26, 2014, 3:37:31 PM3/26/14
to sy...@googlegroups.com
I am aware of the fact! Thanks @aaron for pointing that out.
I want to embed all the pre-existing things which we are calculating anyway (or are a part of the languages which we are using like you pointed out), into a widget so that the user can have options to use the result in the way he thinks is best.
Right now, user can zoom by clicking on the result card but the space of the card does not expand, so i am thinking to create a separate dialog box which will appear with the complete enlarged view like Wolfram|Alpha.
Thanks


SAHIL SHEKHAWAT

unread,
Mar 26, 2014, 3:40:27 PM3/26/14
to sy...@googlegroups.com
Its really nice that you pointed it out! i really appreciate that everyone is helping me. Thanks @certik and @aaron

SAHIL SHEKHAWAT

unread,
Mar 27, 2014, 12:48:43 PM3/27/14
to sy...@googlegroups.com
I wanted to ask that which one among the jQuery UI and Bootstrap 3 will be best for the separate dialog box. 
"modal window" provided by bootstrap 3 is really nice. 

David Li

unread,
Mar 27, 2014, 8:31:06 PM3/27/14
to sy...@googlegroups.com
Do we need all of Bootstrap and/or jQuery UI just for a modal dialog? Also, the graph card already has some code for an expanded view.

For providing the result as plain text/some other format, some places in the code have hardcoded the LaTeX printer, you'd need to work around that somehow...

David

SAHIL SHEKHAWAT

unread,
Mar 28, 2014, 1:43:33 AM3/28/14
to sy...@googlegroups.com
Its true that we don't need Bootstrap/jQuery UI BUT I was thinking that maybe we need to change our GUI in the near future so we might use any of them! Thats why i asked about it!

For plain text and other formats ,I am onto it...trying to figure it out. 
Reply all
Reply to author
Forward
0 new messages