[sage-devel] Re: Start a Sage session from a session of its own Python interpreter ?

2018-08-15 Thread Pedro Cruz
>>> from sage.all import * >>> exec(preparse(r""" ... a = 2^3 ... print a ... """))8>>> a8>>> exit> py$a8 or also: >>> load("some.sage") #I believe all sage power is available in load() but not >>> all in exec(preparse()). segunda-feira, 13 de Agosto de 2018 às 18:07:41 UTC+1, Emmanuel

[sage-devel] Re: How to make package managers cry

2018-05-09 Thread Pedro Cruz
Thank you, Pedro (not in sage-packaging) terça-feira, 8 de Maio de 2018 às 23:21:29 UTC+1, François Bissey escreveu: > > Forwarding this from on another list. I was going to only post it > to sage-packaging but I really think it belongs here. > > PDF: > >

[sage-devel] Re: Python notebooks/worksheets in education

2017-06-22 Thread Pedro Cruz
Thanks, Pedro quarta-feira, 21 de Junho de 2017 às 18:34:03 UTC+1, William escreveu: > > There are some good questions that Thomas Kluyver asks here in > preparation for a talk he is giving at EuroPython on Monday: > > https://groups.google.com/forum/#!topic/jupyter-education/bM502mn5LtA > >

Re: [sage-devel] broken: http://old.files.sagemath.org/src-old/

2017-05-11 Thread Pedro Cruz
gt; > > > On Tue, May 9, 2017 at 8:50 AM, kcrisman <kcri...@gmail.com > > wrote: > >> > >> > >> On Monday, May 8, 2017 at 10:36:55 AM UTC-4, William wrote: > >>> > >>> On Mon, May 8, 2017 at 7:17 AM, Pedro Cruz <pedrocr...@

[sage-devel] broken: http://old.files.sagemath.org/src-old/

2017-05-08 Thread Pedro Cruz
Hello, I'm looking for version 5.2 and the above link is broken in master www.sagemath.org pages. Some emails, in this forum, are also pointing to that link. Where can I find SageMtath 5.2 to try to compile it on Ubuntu 16.04? Thank you. Pedro -- You received this message because you are

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread Pedro Cruz
(1) Sage developers could be better informed of what are they are going to affect if sage, as an "author tool", send usage statistics about each "sage-lib" related function: - Author should put sage in "send usage statistics mode" - The same author would be warned if any of those functions

[sage-devel] catch a "sagemath" DeprecationWarning

2016-04-08 Thread João Pedro Cruz
Hello, I was expecting the following to catch the DeprecationWarning import warnings warnings.filterwarnings('error',category=DeprecationWarning) try: print (exp(x)*exp(3*x)).simplify_exp() #example with exp function except DeprecationWarning: print 'MegBook.py say: exercise needs

[sage-devel] Re: output results depending on platform

2016-03-08 Thread João Pedro Cruz
oh, that simple!! I should not program at late hours (portugal) :) Thank you ! Pedro terça-feira, 8 de Março de 2016 às 00:41:22 UTC, Nils Bruin escreveu: > > On Monday, March 7, 2016 at 4:22:04 PM UTC-8, João Pedro Cruz wrote: >> >> Hello, >> >> I would like to out

[sage-devel] output results depending on platform

2016-03-07 Thread João Pedro Cruz
Hello, I would like to output results with the following code: if MEGUA_PLATFORM=='sagews': fullpath = os.path.join(self.working_dir, self.unique_name()+'.tex') salvus.file(fullpath) else: #MEGUA_PLATFORM=='commandline' fullpath =

Re: [sage-devel] Sage code for educational purposes only?

2015-02-26 Thread Pedro Cruz
+1 for the package educational-algorithms but called educational-packages or educational-library. MathSciNet catalog has the category Mathematics education http://www.ams.org/mathscinet/msc/msc2010.html?t=97-XX being the last topic after all the mathematical edge cutting works. This

[sage-devel] Re: 10 year anniversary of Sage

2015-01-21 Thread Pedro Cruz
Dear William and developers, I was just using Sage to help the (re-)creation of problems for my classes at this time Sage is making 10 years. Congratulations for the concept and working persistence that kept this project growing for the last 10 years. Thanks to all developers and

[sage-devel] How to make a gallery of pairs code and sample ?

2014-01-23 Thread Pedro Cruz
Good morning, in the context of Sage and Sphinx documentation system (or other doc system) is there any direct way to do something like the TikZ community is doing ( http://www.texample.net/tikz/examples/ ) ? We are looking for a ready to use framework. The problem with Sphinx is that it

[sage-devel] Re: documentation with SetPartitionsAk(k)

2013-11-04 Thread Pedro Cruz
. The doctest framework might have redefined something for doctesting purposes. On Saturday, November 2, 2013 5:51:47 PM UTC, Pedro Cruz wrote: Dear Sage 5.12 developers, when using sage -docbuild pt/megua html we are getting the right documentation of our module

[sage-devel] documentation with SetPartitionsAk(k)

2013-11-02 Thread Pedro Cruz
SetPartitionsPRk(*k*) and many more similar but we are not using/calling them. This effect can be seen here: https://dl.dropboxusercontent.com/u/10518224/megua/ur.html Please, check for SetPartitionsAk in the middle of the document. What could be wrong or what should I do? Thank you. Pedro Cruz

[sage-devel] cloud.sagemath.org, Sage Notebook, command line, etc

2013-07-15 Thread Pedro Cruz
Hello, what sequence of instructions could tell what Sage 5.10 user-interface is currently being used ? Possible answers are: - cloud.sagemath.org - Sage Notebook - linux command line - windows command line (?) - cygwin command line (?) - new others... Long ago I used to check if

[sage-devel] Re: Touch Interacts on iOS

2012-01-22 Thread Pedro Cruz
Can people test this functionality before we try to add it to the sage notebook? If you have an iOS or Android device, create an interact at aleph.sagemath.org and try manipulating the controls. On iPod Touch, the n^2 example, @interact def f(n=(1..10)): print n^2 works well. Pedro

[sage-devel] sage, sphinx, and external package

2011-09-16 Thread Pedro Cruz
We would like to use Sphinx :automodule: in our sage external package that depends on sage library (from sage.all import *) Because of this dependency, my local sphinx-build tries to import sage.all and this error occurs: /home/jpedro/all/meg/meg-0.2/doc/source/meg/ur.rst:6: (WARNING/2)

[sage-devel] Re: sage, sphinx, and external package

2011-09-16 Thread Pedro Cruz
Well, it seems this solution works but maybe there is something simple: Inside sphinx Makefile use: SPHINXBUILD = /home/jpedro/sage/sage -python /home/jpedro/all/meg/meg-0.2/doc/sphinx-build where file sphinx-build file is a copy # -*- coding: utf-8 -*- Sphinx - Python documentation

[sage-devel] Re: sage: documentation strings

2011-09-15 Thread Pedro Cruz
Dear Minh and Keshav , thank you for fast answer. There are now two facts I think new sage programmers like me would like to read in the development user guide: 1. An example that ... is currently in use instead of natural ...: (until the fix is done). 2. An example for modules in section

Re: [sage-devel] sage: documentation strings

2011-09-15 Thread Pedro Cruz
I appreciate help on using multiline strings containing % (this is usefull for latex strings). In the following I want that % is not converted to _ip.magic. This also affects sage docstrings (using ... for continuation). In pure python docstrings this is not a problem. CASE 1 sage: txt = One

Re: [sage-devel] sage: documentation strings

2011-09-15 Thread Pedro Cruz
Thank you! 2011/9/15 Keshav Kini keshav.k...@gmail.com: That is an IPython bug which was fixed in 0.11: https://github.com/ipython/ipython/issues/114 We could perhaps backport it but it might make more sense to just upgrade IPython soon. -Keshav Join us in #sagemath on

[sage-devel] sage: documentation strings

2011-09-14 Thread Pedro Cruz
I've search here http://www.sagemath.org/doc/developer/conventions.html#documentation-strings looking for this type of docstring: sage: txt=r''' hello : this goes on ''' This does not work using sage -t module.py. However python works like: r 1+1 2 txt = r''' um

Re: [sage-devel] Re: documenting a new package out of Sage Math tree.

2011-09-02 Thread Pedro Cruz
. Pedro 2011/8/25 leif not.rea...@online.de On 25 Aug., 10:13, Pedro Cruz pedrocruzave...@gmail.com wrote: Dear Maarten Derickx (and Sage developers) thank you for reply. Using: sage -t /home/jpedro/sage/local/lib/python2.6/site-packages/ meg/paramparse.py causes ImportError

Re: [sage-devel] documenting a new package out of Sage Math tree.

2011-08-25 Thread Pedro Cruz
Dear Maarten Derickx (and Sage developers) thank you for reply. Using: sage -t /home/jpedro/sage/local/lib/python2.6/site-packages/ meg/paramparse.py causes ImportError as before but if I use sage -python -m doctest paramparse.py using instead of sage: everything works on each module. The

Re: [sage-devel] documenting a new package out of Sage Math tree.

2011-08-24 Thread Pedro Cruz
Dear William and Sage developers, I request help once more about testing sage -t a package that was not installed on Sage using sage -i. The package name we are developing is named meg and is almost ready. Testing (sage -t) is this last step. All of the package code is on

Re: [sage-devel] documenting a new package out of Sage Math tree.

2011-08-23 Thread Pedro Cruz
The -force_build did not work and I believe it's a problem of how to use import on new Sage packages. Recalling first message, I want to build a new optional package based on *.py modules. It seems that sage -t my_module.py moves my_module.py to a .sage/tmp folder and there executes the

[sage-devel] documenting a new package out of Sage Math tree.

2011-08-19 Thread Pedro Cruz
I am creating a new package in python separated from Sage tree (following [1]) but depends entirely on Sage Math library (and also on Sage Notebook), However sage -t somemodule.py is not working because of imports. == But using this package normally causes no problems with imports! I'm

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-16 Thread Pedro Cruz
. (matlab was never needed). I will improve this notes as soon as a new numerical projects began. Is there any thematic group or wiki for numerical sage ? Pedro Cruz Assistant Teacher University of Aveiro Portugal -- To post to this group, send an email to sage-devel@googlegroups.com

[sage-devel] 1=2 produces a silent answer in sage notebook

2011-01-22 Thread Pedro Cruz
I was tring to remember if simple equality was = or ==. The email is just to mention this: #1/3 Sage command-line: (4.6) sage: 1=2 () TypeError: Must construct a function with a tuple (or list) of symbolic variables. #2/3 Sage notebook: 1=2 (returns nothing) #3/3 Python command line:

[sage-devel] Re: search_methods() to search the methods of an object

2010-10-21 Thread Pedro Cruz
Maybe there's an advantage in change from X.kertab (look through ker* methods...) to X.kertab (look through methods that contain ker in name ...) In fact, it's what X.tab (look through * methods...) do. Pedro On Oct 20, 5:24 am, Dan Drake dr...@kaist.edu wrote: Here's