sympy_gamma icon indicating copy to clipboard operation
sympy_gamma copied to clipboard

UI Improvements

Open lidavidm opened this issue 11 years ago • 13 comments

Mentioned on Hacker News/Reddit:

  • [x] The up/down caret is not clickable in the examples
  • [ ] Plot of series shows an exception
  • [ ] Show the signature/documentation of the Python function on error
  • [ ] Copyable plaintext results
  • [ ] Simplify button for results
  • [x] satisfiable showing an error
  • [ ] Automatically select the input box when the page loads

Natural language was also mentioned. Some resources:

  • Pattern, which offers NLP and machine learning
  • QuePy, which is a library for parsing natural language questions and turning them into database queries
  • A blog post on modern NLP techniques (apparently more state-of-the-art than what NLTK offers)

lidavidm avatar Jan 31 '14 02:01 lidavidm

Great suggestions. +1

Sent from my mobile phone. On Jan 30, 2014 7:51 PM, "David Li" [email protected] wrote:

Mentioned on Hacker News/Reddit:

  • The up/down caret is not clickable in the examples
  • Plot of series shows an exception
  • Show the signature/documentation of the Python function on error
  • Copyable plaintext results
  • Simplify button for results

— Reply to this email directly or view it on GitHubhttps://github.com/sympy/sympy_gamma/issues/29 .

certik avatar Jan 31 '14 04:01 certik

Nice!! :+1: i can try to fix them and include them into my current pull request..... i think our sympy gamma is going to be awesome...its just the beginning.

sahilshekhawat avatar Feb 08 '14 04:02 sahilshekhawat

I was just wondering that do we need to include copyable plain text when the user can have entire result as IPython Notebook? ...i mean that do we need to include this feature too?

sahilshekhawat avatar Feb 26 '14 05:02 sahilshekhawat

@sahilshekhawat It can be useful in case the user isn't using IPython.

lidavidm avatar Feb 26 '14 23:02 lidavidm

David, i was trying to make gamma plot the series expansions but for some reason it is always calculating series expansion around 0 only. for e.g. series(sin(x), x, pi/2) (Given in examples list of Gamma itself) we want it to plot series around pi/2 but still the terms contains only x, it should be (x-pi/2) instead. So, instead of fixing this bug " Plot of series shows an exception " i think i should first improve the accuracy of results. Any suggestions? BTW I can fix this bug, it is due to "BIg O" which is counted as a Symbol (not defined)..should I?

sahilshekhawat avatar Mar 01 '14 09:03 sahilshekhawat

See the docstring of Expr.series.

asmeurer avatar Mar 02 '14 03:03 asmeurer

I have seen it, it says that it just represents every series in terms of x only and one have to think x as (x-x0)....but their plots will be the same....( obviously with a difference of the constant) thanks, and one more thing @asmeurer can you please share you views on my project idea of improving SymPyGamma on the mailing list

sahilshekhawat avatar Mar 02 '14 03:03 sahilshekhawat

Will that be good to add a button "Download as PDF"?

debugger22 avatar Apr 28 '14 17:04 debugger22

@debugger22 Chrome (and Windows 8?) can print to PDF already.

lidavidm avatar Apr 29 '14 00:04 lidavidm

Yeah. In that case there's no need.

debugger22 avatar Apr 29 '14 02:04 debugger22

Just in case someone wants to look at it, Pattern seems like it could be a very good fit for adding NLP, and has a regex-like way to parse sentences. It also doesn't seem to get tripped up by mathematical notation too much.

>>> from pattern.en import parsetree
>>> from pattern.search import search
>>> parsetree('integrate x^2+3x+5')
[Sentence('integrate/VB/B-VP/O x^2+3x+5/NN/B-NP/O')]
>>> parsetree('integrate x^2 + 3x + 5')
[Sentence('integrate/VB/B-VP/O x^2/NN/B-NP/O +/SYM/O/O 3x/CD/O/O +/SYM/O/O 5/CD/O/O')]
>>> search('NN|CD', parsetree('integrate x^2 + 3x + 5'))
[Match(words=[Word(u'x^2/NN')]), Match(words=[Word(u'3x/CD')]), Match(words=[Word(u'5/CD')])]
>>> search('VB', parsetree('integrate x^2 + 3x + 5'))
[Match(words=[Word(u'integrate/VB')])]

# VB is a verb, NN is a noun, SYM is a symbol, CD is a number

lidavidm avatar May 13 '14 00:05 lidavidm

Random Example button is not working on Firefox. Can anyone check it? Maybe it's just me.

sahilshekhawat avatar May 22 '14 06:05 sahilshekhawat

It's because that button is a link embedded in a button tag, which technically isn't allowed (thus it doesn't work in Firefox). Someone would have to remove the outer button and style that link to look like the other buttons.

lidavidm avatar May 22 '14 22:05 lidavidm