[sage-support] Re: Change color in command line

2014-03-12 Thread Nitin Prasad
John and Jason, I tested Jason's solution and it works in sage. I guess now there is no need for adding any code. John, you mentioned earlier that I should maybe add information to the installation guide regarding this? I would add both the permanent solution you suggested as well as the on th

Re: [sage-support] creating a graph from a graph with one edge removed

2014-03-12 Thread Ken Levasseur
Christophe: Thank you, I suspected that there must have been a method like copy, but didn't know what it was. Ken On Wednesday, March 12, 2014 5:01:21 PM UTC-4, projetmbc wrote: > > Hello. > > This is certainly due to the way Python manages unhashable variables. If > you type p6 is c6, you w

[sage-support] Re: Change color in command line

2014-03-12 Thread Jason Grout
On 3/9/14, 19:02, John H Palmieri wrote: Rather than a Makefile target, a Sage command to change on-the-fly would be nice. You might investigate whether IPython allows changing color schemes while it's running, or if it needs to be restarted for such changes to take effect. %colors linux or %

Re: [sage-support] Change color in command line

2014-03-12 Thread John H Palmieri
Command-line options to Sage are handled by local/bin/sage (which is copied, or linked, or something, from src/bin/sage during installation). John On Wednesday, March 12, 2014 4:27:40 PM UTC-7, Nitin Prasad wrote: > > I just wanted to clarify - I was wondering if you were familiar with where

[sage-support] Re: How to set up editor path in sage?

2014-03-12 Thread sasha
I'm using ubuntu 10.04. I run sage locally. So, the problem is that gedit can't work that way? I guess I will have to install emacs then. Dne sreda, 12. marec 2014 22:13:27 UTC+1 je oseba Dima Pasechnik napisala: > > On 2014-03-12, Dima Pasechnik > wrote: > > On 2014-03-12, sasha > wrote: > >

Re: [sage-support] Change color in command line

2014-03-12 Thread Nitin Prasad
I just wanted to clarify - I was wondering if you were familiar with where Sage itself handles command line options. I've tried grepping sys.argv and "command line option" but these don't seem to give me anywhere that Sage handles these options. The best I've found is that /src/bin/run-sage inf

[sage-support] Re: How to set up editor path in sage?

2014-03-12 Thread Dima Pasechnik
On 2014-03-12, Dima Pasechnik wrote: > On 2014-03-12, sasha wrote: >> >> >> I have read this in sage tutorial: >> >> You can use %edit (or %ed or ed) to open an editor, if you want to type in >> some complex code. Before you start Sage, make sure that the EDITOR >> environment variable is set t

Re: [sage-support] creating a graph from a graph with one edge removed

2014-03-12 Thread Christophe Bal
Hello. This is certainly due to the way Python manages unhashable variables. If you type p6 is c6, you will obtain True, in other words, p6 and c6 are two references to the same object. Using p6=c6.copy() will do the job. Best regards. Christophe BAL 2014-03-12 21:42 GMT+01:00 Ken Levasseur :

[sage-support] Re: How to set up editor path in sage?

2014-03-12 Thread Dima Pasechnik
On 2014-03-12, sasha wrote: > > > I have read this in sage tutorial: > > You can use %edit (or %ed or ed) to open an editor, if you want to type in > some complex code. Before you start Sage, make sure that the EDITOR > environment variable is set to your favorite editor (by putting export > ED

[sage-support] Optimizing this function with Cython

2014-03-12 Thread geo909
Hi all, I'm trying to get the grasp on Cython. I know a little bit of C, so I understand the concept of data types. But I'm still not sure how to use things properly. So, for instance, is the following optimization reasonable? (there is an ~30% increase in speed from pure python code) %cython

[sage-support] creating a graph from a graph with one edge removed

2014-03-12 Thread Ken Levasseur
I want to examine graphs I get by removing single edges from an initial graph and I've run into a problem. Here it is: For example, I start with c6=graphs.CycleGraph(6) a=c6.edges()[0] p6=c6 p6.delete_edge(a) Now if I do this: p6.is_tree() I get the output I expect, True. However, if ev

[sage-support] Re: Sagetex issues

2014-03-12 Thread sdermon
I have no idea how to fix this -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sa

Re: [sage-support] Re: Sagetex issues

2014-03-12 Thread Ivan Andrus
On Mar 12, 2014, at 12:17 PM, Dan Drake wrote: On Wed, 12 Mar 2014 at 10:04AM -0700, sder...@gmail.com wrote: Well the only problem is that I... don't use a script haha! I double click on the sage file and a terminal window pops up and sage starts to process the file. I get a few lines telling m

Re: [sage-support] Re: Sagetex issues

2014-03-12 Thread Dan Drake
On Wed, 12 Mar 2014 at 10:04AM -0700, sder...@gmail.com wrote: > Well the only problem is that I... don't use a script haha! I double click > on the sage file and a terminal window pops up and sage starts to process > the file. I get a few lines telling me it's working on the file and then > som

[sage-support] Re: Sagetex issues

2014-03-12 Thread sdermon
Well the only problem is that I... don't use a script haha! I double click on the sage file and a terminal window pops up and sage starts to process the file. I get a few lines telling me it's working on the file and then some files are created in my Home directory : E2.sobj example.sagetex.scm

Re: [sage-support] Re: Sagetex issues

2014-03-12 Thread Dan Drake
On Tue, 11 Mar 2014 at 07:26AM -0700, sder...@gmail.com wrote: > Thank you for your time. > > A bunch of files are created : > example_doctest.sage > example.aux > example.log > example.out > example.pdf > example.sagetex.sage Okay, so example.sagetex.sage is created. That leads me to think that

[sage-support] How to set up editor path in sage?

2014-03-12 Thread sasha
I have read this in sage tutorial: You can use %edit (or %ed or ed) to open an editor, if you want to type in some complex code. Before you start Sage, make sure that the EDITOR environment variable is set to your favorite editor (by putting export EDITOR=/usr/bin/emacs or export EDITOR=/usr/

[sage-support] How to make %edit open editor?

2014-03-12 Thread sasha
I'm on ubuntu 10.04 and have Sage 6.1.1. I have read this in sage tutorial: You can use %edit (or %ed or ed) to open an editor, if you want to type in some complex code. Before you start Sage, make sure that the EDITOR environment variable is set to your favorite editor (by putting export ED

[sage-support] Re: Internal points of lattice polytope

2014-03-12 Thread Dima Pasechnik
On 2014-03-11, Soli vishkautsan wrote: > Is there a quick way to calculate the number of *internal* lattice > points of a lattice polytope? LatticePolytope object has npoints > method, which returns the total number of lattice points, including > the border points. > probably LattE (see https://ww

[sage-support] Re: Internal points of lattice polytope

2014-03-12 Thread Volker Braun
Not easily. There is this internal method whose output includes which points saturate which equation. Though you probably should just iterate over all points and pick the ones you like. sage: from sage.geometry.polyhedron.ppl_lattice_polytope import LatticePolytope_PPL sage: P = LatticePolytop