>>> 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
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:
>
>
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
>
>
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...@
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
(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
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
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
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 =
+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
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
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
. 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
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
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
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
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)
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
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
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
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
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
.
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
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
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
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
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
.
(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
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:
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
30 matches
Mail list logo