[sympy] Re: GSOC 2017: SymPy Live and SymPy Gamma (on Google App Engine)

2017-03-31 Thread David Li
Hi Bhautik, Quick thoughts: NLP: How will your tagger, stemmer, and lemmatizer deal with mathematical input? Is there any guarantee they won't trip over or mangle math expressions? Will the lemmatizer deal with things like oo, inf, infinity, unicode symbols, etc? I'm also not sure how regexes

[sympy] Re: GSOC 2017: SymPy Live and SymPy Gamma (on Google App Engine)

2017-03-28 Thread David Li
Hi Bhautik, I would look at the issues list for SymPy Live[1] and SymPy Gamma[2]. For SymPy Live, I would say the biggest problem is how it is implemented - it tries to preserve a user session by pickling all globals, but this does not always work, and so it falls back to re-evaluating

Re: [sympy] SymPy Live Maintainer

2017-03-28 Thread David Li
to add a message for the docs, which I will merge soon. David On Tue, Mar 28, 2017 at 9:17 PM, Aaron Meurer <asmeu...@gmail.com> wrote: > That's great. SymPy Live is in need of some maintainence. I'm CCing > David Li, who has written most of the code. > > I think the biggest iss

Re: [sympy] Bug in parse expression

2015-02-23 Thread David Li
For Aaron's case the expression is turned into sin (Symbol )**(Integer (2 )('x' ))*Symbol ('x' ) For the original case the expression is turned into Integer (10 )*sin (Symbol )**(Integer (120 )('x' ))*Symbol ('x' )**Integer (2 )+Integer (3 )*Symbol ('x' )*Symbol ('y' )*Symbol ('z' )+tan

[sympy] Re: Helping people contribute to SymPy at Cornell

2014-11-16 Thread David Li
Just wanted to follow up: we ended up spending most of the time teaching Git+Github. I walked a few people through what SymPy is, but didn't get any interest in contributing...we are thinking about a longer workshop in the spring, hopefully there will be more interest then. David -- You

[sympy] Helping people contribute to SymPy at Cornell

2014-11-12 Thread David Li
Hello all, This is a bit late notice, but at Cornell we're having an open-source workshop on Saturday, and the organizers are interested in introducing people to contributing to SymPy. I was thinking the Easy to Fix and Documentation (and perhaps Needs Review) labels in the issue tracker would

[sympy] Re: Question about SymPy live function def

2014-05-02 Thread David Li
Hello, Could you please be more specific about the 'complaint'? If the input method is set to 'enter', then 'shift-enter' will create a newline without submitting the expression. For the second part of your question: as I understand, your documentation contains a function definition, but when

[sympy] Re: Automatic deployment of SymPy Live/Gamma

2014-04-20 Thread David Li
be best? David On Tuesday, March 11, 2014 1:26:52 PM UTC-7, David Li wrote: Hello all, Based on Paul Kinlan's blog posthttp://paul.kinlan.me/Using-the-Github-API-to-optimise-your-workflow/ I have forked and updated the Github-Auto-Deploy server to deploy SymPy Live/SymPy Gamma. My fork

[sympy] Re: Widgets in SymPyGaama

2014-03-27 Thread David Li
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...

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 David Li
will render the static files and javascript like Bokeh Thanks for pointing out that we also have numpy arrays which i can use.. On Thu, Mar 20, 2014 at 8:17 AM, David Li li.da...@gmail.comjavascript: wrote: And I can focus more on creating a python base which will make the JSON rather than

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

[sympy] Re: SymPy Gamma: hand-written input

2014-03-12 Thread David Li
Hello, This sounds like a great idea for Gamma. How familiar are you with web development? In particular, do you have any experience with JavaScript? I would also encourage you to look at the application templatehttps://github.com/sympy/sympy/wiki/GSoC-2014-Application-Template and also

[sympy] Automatic deployment of SymPy Live/Gamma

2014-03-11 Thread David Li
Hello all, Based on Paul Kinlan's blog posthttp://paul.kinlan.me/Using-the-Github-API-to-optimise-your-workflow/ I have forked and updated the Github-Auto-Deploy server to deploy SymPy Live/SymPy Gamma. My fork is at https://github.com/lidavidm/Github-Auto-Deploy; it uses Python 3 and has

[sympy] Re: UI: Mobile Applications

2014-03-11 Thread David Li
Hello, Which mobile application are you referring to? Currently SymPy has no official native mobile app, only the web applications. Also, while sympy is contained in Sage, sympy by itself differs greatly from Sage - I don't think the Sage tutorial applies (and SymPy has its own tutorial:

Re: [sympy] Re: Issue migration from Google Code to GitHub

2014-03-04 Thread David Li
My email address is the same on Google Code and Github: li.david...@gmail.com David On Tuesday, March 4, 2014 1:20:32 PM UTC-7, Aaron Meurer wrote: My understanding was that it could be fixed after import if the user adds that email to their account. But let's just canonicalize those four

[sympy] Re: GSOC - Improving SymPyGamma

2014-03-02 Thread David Li
Why GIF? It - uses a lot of bandwidth - is rather low-quality - would have to be generated server-side, or - if done client-side, is completely redundant vs. canvas, SVG, WebGL, or any of the other client-side technologies for animation/rendering. What animations are you talking

[sympy] Re: GSOC - Improving SymPyGamma

2014-03-01 Thread David Li
The only way to use matplotlib on App Engine is through whatever Google provides. There isn't much documentation on what it's capable of, so you'd have to look into that. For 3D plots I would suggest something using Three.js, like what Mathics has. For natural language: I found QuePy, which

[sympy] Re: Ipython Notebook in Sympy_Gamma

2014-02-14 Thread David Li
Hey Sahil, If I understand correctly, you want the MathJax output to appear correctly to the user on the page (e.g. so that it is copy-pastable into a LaTeX document)? Django has 'filters' to control if/how the content is escaped in the template. For instance, you might have '{{

[sympy] Re: GSOC Idea : Sympy live android app

2014-02-14 Thread David Li
A Python interpreter can definitely be run in a native Android app. See SL4Ahttps://github.com/damonkohler/sl4a, for instance; I believe the project even has code to include in an app that will set up a Python interpreter for use. There are some other (closed-source?) apps floating around that

[sympy] Re: Ipython Notebook in Sympy_Gamma

2014-02-14 Thread David Li
What about .decode('string_escape')? http://stackoverflow.com/questions/1885181/how-do-i-un-escape-a-backslash-escaped-string-in-python David On Friday, February 14, 2014 4:53:48 PM UTC-7, SAHIL SHEKHAWAT wrote: I have already used escape filter but it only escapes ,,..etc but not

[sympy] Re: problem in django while implementing ipython notebook to sympy_gamma

2014-02-05 Thread David Li
First off, having your code in a pull request would be extremely helpful. The problems with '%number' are due to URL encoding, you'll have to decode the data in app.views.json_creator (not a Django problem, this is a feature of URLs) or use base64 as Ondrej suggests (you would still need to

Re: [sympy] Sympy gamma on hacker news

2014-01-29 Thread David Li
We were posted on r/pythonhttp://www.reddit.com/r/Python/comments/1whmjy/sympy_gamma_an_opensource_pythonbased_alternative/as well, and now we've reached our quota. David On Wednesday, January 29, 2014 6:05:01 PM UTC-7, Aaron Meurer wrote: Thanks for the heads up. We'll have to check the

Re: [sympy] Sympy gamma on hacker news

2014-01-29 Thread David Li
It is, but we hit the cap on daily cost. David On Jan 29, 2014 9:52 PM, Aaron Meurer asmeu...@gmail.com wrote: I didn't realize it wasn't on a paid plan. I'll talk to Ondřej. Aaron Meurer On Jan 29, 2014, at 9:06 PM, David Li li.david...@gmail.com wrote: We were posted on r/pythonhttp

Re: [sympy] Re: sympy gamma

2014-01-17 Thread David Li
in this plotting module for sympy and sympy gamma. after working with some of the equations on sympy gamma, I can see the plots being drawn for the equations. -- *Nitin Agarwal* On Wed, Jan 15, 2014 at 3:30 AM, David Li li.da...@gmail.comjavascript: wrote: Google's documentation talks about

Re: [sympy] Re: sympy gamma

2014-01-17 Thread David Li
like to have and how to start working on this to get this done. On Sat, Jan 18, 2014 at 7:39 AM, David Li li.david...@gmail.com wrote: Gamma uses its own plotting code based on d3.js, which is all rendered client-side and does not support all types of plots (particularly 3D plots

Re: [sympy] Re: sympy gamma

2014-01-17 Thread David Li
is not working. On Sat, Jan 18, 2014 at 7:51 AM, David Li li.david...@gmail.com wrote: A console wouldn't be appropriate for Gamma, I just wanted to point out that the interactivity currently present with SymPy plots wouldn't work by default on App Engine. You would need to get matplotlib

Re: [sympy] Re: sympy gamma

2014-01-17 Thread David Li
here, could you clarify? On Sat, Jan 18, 2014 at 8:03 AM, David Li li.david...@gmail.com wrote: This is not matplotlib, this is d3.js as I mentioned. For an example of what doesn't work, try x^2 - y^2. On Jan 17, 2014 8:02 PM, Nitin Agarwal nitinagarwal3...@gmail.com wrote: So if I

Re: [sympy] Re: sympy gamma

2014-01-17 Thread David Li
working on the app engine, Whether we would be able to draw 3D plots or not? On Sat, Jan 18, 2014 at 8:34 AM, David Li li.david...@gmail.com wrote: On Jan 17, 2014 8:10 PM, Nitin Agarwal nitinagarwal3...@gmail.com wrote: Does d3.js plots both 2D and 3D plots as mentioned in the tutorial

Re: [sympy] Re: sympy gamma

2014-01-17 Thread David Li
App Engine is on 1.2, so I don't think WebAgg is supported yet, unfortunately. On Jan 17, 2014 9:32 PM, Aaron Meurer asmeu...@gmail.com wrote: How new is the matplotlib on the App Engine? Does it have the new webagg stuff? Aaron Meurer On Fri, Jan 17, 2014 at 9:42 PM, David Li li.david

Re: [sympy] Re: sympy gamma

2014-01-14 Thread David Li
to discuss about the new ideas which I could start off with and integrate with the Sympy gamma. We would have to besides the current features, we would have to develop some new features in comparison to what wolframalpha currently offers to the users. On Tue, Dec 31, 2013 at 11:42 PM, David

Re: [sympy] Re: Convert sympy to javascript

2014-01-10 Thread David Li
:04:49 PM UTC+1, David Li wrote: There's also the more speculative ideas of using Emscripten (example: http://repl.it/M4w) or Portable Native Client to compile the Python interpreter to JavaScript, then using that to run SymPy. I came across this project and, yes, I believe

[sympy] Re: sympy gamma

2013-12-31 Thread David Li
You could look at the issues lists on Github: https://github.com/sympy/sympy_gamma/issues and on Google Code: https://code.google.com/p/sympy/issues/list?can=2q=label%3AGamma, as well as the GSoC ideas list: https://github.com/sympy/sympy/wiki/GSoC-2014-Ideas. Google App Engine, which Gamma

Re: [sympy] Re: Convert sympy to javascript

2013-11-17 Thread David Li
There's also the more speculative ideas of using Emscripten (example: http://repl.it/M4w) or Portable Native Client to compile the Python interpreter to JavaScript, then using that to run SymPy. David On Wednesday, November 13, 2013 11:45:04 AM UTC-7, Aaron Meurer wrote: Unless there is a

Re: [sympy] Docs padding

2013-07-03 Thread David Li
For hyphenation, CSS3 has experimental support and I believe there is a JavaScript library that can do this as well. Also, I think it'd be nice if the Sphinx extension could dock to the right and collapse the left sidebar - that way it wouldn't cover the docs. -- You received this message

Re: [sympy] SymPy Android app

2013-03-22 Thread David Li
an Android phone, and BlueStacks doesn't seem to support OAuth Google sign-in, so I can't test this. Any idea what SymPy version it is using? Aaron Meurer On Thu, Mar 21, 2013 at 8:00 PM, David Li li.david...@gmail.com wrote: I don't know if any of the developers are aware of this (it's

Re: [sympy] SymPy Android app

2013-03-22 Thread David Li
If you're interested in functionality for explanations of derivatives and integrals, there is some code at https://github.com/sympy/sympy_gamma/pull/8. I'm currently working on integrating the integral functionality into the core SymPy project. On Mar 22, 2013 11:49 AM, Alexander Overvoorde

[sympy] SymPy Android app

2013-03-21 Thread David Li
I don't know if any of the developers are aware of this (it's not mentioned on this mailing list), but it looks like someone's made an Android app using SymPy: https://play.google.com/store/apps/details?id=nl.vertinode.mathstep (developer says it uses SymPy at https://www.vertinode.nl/projects)

Re: [sympy] Re: Implementation of derivative and integral steps in Gamma

2013-03-16 Thread David Li
for machine consumption more than human consumption. Aaron Meurer On Sat, Mar 16, 2013 at 8:47 PM, David Li li.da...@gmail.comjavascript: wrote: Alright, thank you for pointing out that typo. I've fixed it. I have finished porting; the code is still at the same place, https

[sympy] Re: Implementation of derivative and integral steps in Gamma

2013-03-15 Thread David Li
the rest of the code. On Thursday, March 14, 2013 8:22:25 AM UTC-7, David Li wrote: Hello all, I have implemented a module giving steps for most derivatives and some integrals for SymPy Gamma. However, it was suggested that at least some of this functionality should be added to SymPy itself

Re: [sympy] Re: Implementation of derivative and integral steps in Gamma

2013-03-15 Thread David Li
That would be a good idea. Looking at the code, everything has an _eval_derivative method which should work. My only concern is that, for instance, in Pow it combines the power, chain, and exponential rules into one expression. In any case, most of the code I added was related to printing and

[sympy] Implementation of derivative and integral steps in Gamma

2013-03-14 Thread David Li
+LaTeX are implemented). The code makes use of context managers, which would need to be replaced in order to maintain Python 2.5 compatibility. Thank you, David Li -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop

[sympy] Re: Implementation of derivative and integral steps in Gamma

2013-03-14 Thread David Li
Alright, thank you all for the feedback! I just started looking at the strategies module, I think I could map my rules to rules in the strategies module and have intsteps/diffsteps be a strategy; I'll look into this some more. I can get rid of the format function easily, I'm not really using

Re: [sympy] Refactoring/API for parsing

2012-11-23 Thread David Li
On Friday, November 23, 2012 2:41:36 AM UTC-7, Aaron Meurer wrote: On Thu, Nov 22, 2012 at 6:28 PM, David Li li.da...@gmail.comjavascript: wrote: What exactly was the tuple before? The tuple before was (auto_symbol, auto_number, factorial_notation). The new function that replaces

[sympy] Refactoring/API for parsing

2012-11-22 Thread David Li
Hello, I have been working on the API for parse_expr after having implemented implicit multiplication, and would like your thoughts on my proposed changes. Currently in a local branch I have this: - stringify_expr parses the input and returns a string (this will be useful for Gamma) -

Re: [sympy] Refactoring/API for parsing

2012-11-22 Thread David Li
What exactly was the tuple before? The tuple before was (auto_symbol, auto_number, factorial_notation). The new function that replaces the tuple iterates through those functions internally and applies each of them. Did you also fix comment 3 of 2663? I added those cases as tests,

[sympy] Re: SymPy project ideas?

2012-09-09 Thread David Li
. David Li On Monday, September 3, 2012 11:31:35 AM UTC-7, David Li wrote: Hello all, As a high school student, I am encouraged to conduct a science fair experiment each year. I became interested in contributing to SymPy through the 2011 Google Code-In project, and for this year, I am

[sympy] Re: SymPy project ideas?

2012-09-08 Thread David Li
of a performance impact the loops have. I also check for NAME tokens and split them up if they don't turn out to be in the global scope or something like that, so 'xy' gets parsed as 'x y'. David Li On Monday, September 3, 2012 11:31:35 AM UTC-7, David Li wrote: Hello all, As a high school student, I

Re: [sympy] SymPy project ideas?

2012-09-04 Thread David Li
, you should put it there. For the rest, it should go in the parsing module (another good thing to think about by the way is a good way of organizing the parsing code; that was discussed a little bit on that other thread). Alright, I'll keep this in mind as I work on an API. David Li

Re: [sympy] SymPy project ideas?

2012-09-04 Thread David Li
in there) David On Tuesday, September 4, 2012 6:52:16 PM UTC-7, Joachim Durchholz wrote: Am 05.09.2012 02:14, schrieb David Li: Yes, what I was thinking is that there would be a whitespace expansion step (probably after tokenization) that would convert statements like 2xy into 2 x y

[sympy] SymPy project ideas?

2012-09-03 Thread David Li
Multivariable Calculus/Differential Equations. I have completed AP Calculus BC; I have basic knowledge of logic and set theory, but that is the extent of my mathematical knowledge. Thank you, David Li -- You received this message because you are subscribed to the Google Groups sympy group. To view

Re: [sympy] SymPy project ideas?

2012-09-03 Thread David Li
help and suggestions! David Li -- You received this message because you are subscribed to the Google Groups sympy group. To view this discussion on the web visit https://groups.google.com/d/msg/sympy/-/euHGwxuSH84J. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from

[sympy] Re: The new Live sphinx extension seems to confuse URL bookmarks

2012-08-30 Thread David Li
Okay, I see the problem with page position. I'll look into it. In Firefox 14 and 15, there seems to be no position problem, but the run button doesn't show up as described - there seems to be a minor difference in the DOM. I'll look into this as well. David Li On Thursday, August 30, 2012 12

Re: [sympy] Re: The new Live sphinx extension seems to confuse URL bookmarks

2012-08-30 Thread David Li
, because that's really annoying. Aaron Meurer On Thu, Aug 30, 2012 at 5:27 PM, David Li li.da...@gmail.comjavascript: wrote: Okay, I see the problem with page position. I'll look into it. In Firefox 14 and 15, there seems to be no position problem, but the run button doesn't

[sympy] Re: The new Live sphinx extension seems to confuse URL bookmarks

2012-08-30 Thread David Li
Okay, pull request at https://github.com/sympy/sympy-live/pull/61 For some reason, I can't reproduce the scroll problem anymore. David Li On Thursday, August 30, 2012 12:15:20 AM UTC-7, Ondřej Čertík wrote: Hi, I noticed, that if I click on this link in my Chrome: http://docs.sympy.org

Re: [sympy-live] SymPy Live Sphinx extension (#59)

2012-08-08 Thread David Li
I will work on the individual-statement highlighting when I next get a chance. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy-live/pull/59#issuecomment-7582813 -- You received this message because you are subscribed to the Google Groups sympy-patches

Re: [sympy-live] SymPy Live Sphinx extension (#59)

2012-08-08 Thread David Li
Alright, now you can click a line to execute. I am deploying it to the test server. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy-live/pull/59#issuecomment-7602291 -- You received this message because you are subscribed to the Google Groups

Re: [sympy-live] SymPy Live Sphinx extension (#59)

2012-08-08 Thread David Li
Yes, I think that would be due to the extension. I will refactor the code a bit next chance I get and make those changes/fix those bugs. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy-live/pull/59#issuecomment-7603357 -- You received this message because

Re: [sympy-live] SymPy Live Sphinx extension (#59)

2012-08-07 Thread David Li
Okay, I've reverted to the old backend and changed the Sphinx frontend. I am pushing the changes... Also, there seems to be a bug in the normal backend: the code c, d = var('c d') print c c print d d def ctimesd(): ... ... This function returns

Re: [sympy-live] SymPy Live Sphinx extension (#59)

2012-08-06 Thread David Li
Okay, now it should print each prompt interspersed with the results. I've pushed the changes to the server. Also, I fixed the bug where preexecs weren't getting evaluated...turns out I was overwriting a variable. --- Reply to this email directly or view it on GitHub:

Re: [sympy-live] SymPy Live Sphinx extension (#59)

2012-08-06 Thread David Li
Sorry, fixed. Still some issues: - Code like def ctimesd(): ... ... This function returns whatever c is times whatever d is. ... ... return c*d isn't getting executed properly. - Tracebacks don't show the original prompt --- Reply to this email

[sympy-live] SymPy Live Sphinx extension (#59)

2012-08-04 Thread David Li
- Adds a Show/Hide SymPy Live Shell button to the bottom-right corner of the docs. - Clicking it shows a shell that takes up about 600x500px of space. - The Fullscreen button normally in SymPy Live now redirects to SymPy Live. - Settings are in a dropdown under the shell. - Hovering

[sympy] SymPy Live Sphinx extension (#1465)

2012-08-04 Thread David Li
- Adds a Show/Hide SymPy Live Shell button to the bottom-right corner of the docs. - Clicking it shows a shell that takes up about 600x500px of space. - The Fullscreen button normally in SymPy Live now redirects to SymPy Live. - Settings are in a dropdown under the shell. - Hovering