Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
New issue report by ondrej.certik:
One thing that would be nice is to give a bit more information on
different algorithms used for examples. It seems that we could really
just have such a large list of examples
Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Comment #1 by Vinzent.Steinberg:
Providing links pointing to such information should be relatively easy to
add.
--
You received this message because you are listed in the owner
or CC fields of this issue,
Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Comment #2 by andy.terrel:
To me examples are really important, they provide a first look into a code
and can often give misleading advice. Two things that I think would be
good:
1) Have staged levels of mat
Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Comment #3 by ondrej.certik:
Yes, I agree with all 1, 2 and 3). Let's do it.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
Yo
Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Comment #4 by andy.terrel:
So I'm just going to put up the README and the division of files I propose
here, since a patch would basically
be all the files moved around.
I think there should be quite a few cha
Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Comment #5 by ondrej.certik:
I am +1 to everything. Thanks for doing this!
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You
Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Comment #6 by andy.terrel:
Okay I pushed to my repo git://github.com/aterrel/sympy.git branch
master-aterrel .
I'll start working on putting docstrings and polishing the examples.
--
You received this mes
Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Comment #7 by andy.terrel:
Do we need she-bangs for the examples?
We are depending on /usr/bin/env which does not always work, and I think it
is confusing for a learner. Having to type python is not really
a
Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Comment #8 by ondrej.certik:
> Do we need she-bangs for the examples?
maybe not, I agree.
> Do we need the iam_sympy_example module?
this module is there so that you can run examples both from our root
dire
Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Comment #9 by andy.terrel:
So you don't need iam_sympy_example to do that. I took it out.
see
http://groups.google.com/group/sympy-patches/browse_thread/thread/be416971dda798b3
or http://github.com/aterrel/
Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Comment #10 by ondrej.certik:
I rebased your patches to the latest sympy and committed docstrings for
trees.py,
relativity.py and qft.py, see my examples branch:
http://github.com/certik/sympy/tree/examples
Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Comment #11 by andy.terrel:
Thanks for the docstrings! I signed off all of them.
Okay I updated the patches (removed the all script made
beginner/expansion.py work correctly) and made
some improvements to the
Issue 1196: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Comment #12 by ondrej.certik:
I do:
git push --d github master-ondrej
to check what will happen (--d is the same as --dry-run). If it won't push,
I add
"-f", this forces it. And then just delete the "--d" an
Comment #13 on issue 1196 by ondrej.certik: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Let's also fix these:
> pidigits.py
> py24/25
>Traceback (most recent call last):
> File "H:\pure_pylib\math\sympy\examples\pidigits.py", line 71,
> in ?
>inter
Comment #14 on issue 1196 by andy.terrel: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
So I will definitely look at pidigits, but I deleted print_pygame because
in other places it has been said that we
no longer support it.
I would also like to add a bit more to t
Comment #15 on issue 1196 by Vinzent.Steinberg: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Maybe sphinx supports it to link to the examples to include it in generated
documentation?
--
You received this message because you are listed in the owner
or CC fields of
Comment #16 on issue 1196 by ondrej.certik: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
I think we should generate as much documentation as possible from
docstrings.
Andy --- if some of your patches are ready for including, let me know.
--
You received this mes
Comment #17 on issue 1196 by andy.terrel: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
hmm it looks like the tensor.py example never worked and there isn't any
documentation for me to try to figure
it out.
I can add the __getitem__ and get the g[i.up, m.up] interf
Comment #18 on issue 1196 by ondrej.certik: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Yes, let's delete the nonworking tensor.py example and merge everything
else that you
have.
--
You received this message because you are listed in the owner
or CC fields of t
Comment #19 on issue 1196 by andy.terrel: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
okay I'll delete it, I still need to get the plotting examples working on
my system. pythonw wasn't working on
my mac. I guess I can look at pulling examples from doc strings
Comment #20 on issue 1196 by ondrej.certik: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
You mean the 3 my patches?
http://github.com/certik/sympy/commits/examples/
So review them. :)
--
You received this message because you are listed in the owner
or CC fields o
Comment #21 on issue 1196 by andy.terrel: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
No I checked yours into my branch. The three final checkins at
http://github.com/aterrel/sympy/commits/master-aterrel
Removing tensor example. Adding qft to all.py.
Andy R.
Comment #22 on issue 1196 by ondrej.certik: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
I reviewed all 3 of them and all are +1.
So can this be merged now?
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you
Comment #23 on issue 1196 by andy.terrel: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
sounds good to me
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notifi
Comment #24 on issue 1196 by andy.terrel: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
So all the examples are running now. It doesn't seem that there is a tool
in sphinx for extracting examples
from the documentation (such as the tutorial), but there is a possibi
Comment #25 on issue 1196 by ondrej.certik: improve our examples
http://code.google.com/p/sympy/issues/detail?id=1196
Ah, this works:
$ python examples/beginner/basic.py
(3*a*b**2)**c
I thought it didn't work for me. Then I think it is ok with me.
--
You received this message because you are
26 matches
Mail list logo