Ask Your Question

Vincent Russo's profile - activity

2023-11-27 02:03:42 +0200 received badge  Famous Question (source)
2023-11-27 02:03:42 +0200 received badge  Notable Question (source)
2021-02-09 15:45:28 +0200 received badge  Notable Question (source)
2020-08-06 02:21:28 +0200 received badge  Popular Question (source)
2020-04-17 13:04:32 +0200 received badge  Popular Question (source)
2017-12-12 13:27:12 +0200 received badge  Nice Question (source)
2017-12-10 01:09:37 +0200 commented answer Importing user SAGE files "pythonically"

Why-oh-why is this not more explicitly stated in the documentation. Thank you, good sir.

2017-12-09 16:15:19 +0200 asked a question Importing user SAGE files "pythonically"

Hello,

I'm wondering if there's a more "pythonic" way in which to import user-written SAGE modules.

For instance, I'm able to load in a SAGE file I've written using the load keyword.

load(path_to_sage_file)

That's all well and good, however, as I start to import more and more user SAGE files, where certain functions are coming from becomes less clear. It would be ideal to do something like

from name_of_sage_file import name_of_sage_function

However, this doesn't seem to work. Is there a more "pythonic" way in which to go about doing this? Thanks!

2017-10-31 22:48:37 +0200 commented answer Upgrading GAP in SAGE

That'll do the trick. Thanks!

2017-10-31 22:48:21 +0200 received badge  Scholar (source)
2017-10-31 22:48:20 +0200 received badge  Supporter (source)
2017-10-29 16:30:26 +0200 received badge  Student (source)
2017-10-27 21:27:09 +0200 commented question Upgrading GAP in SAGE

Right, but unfortunately I require the use of GAP 4.8.8 instead of 4.8.3 due to KBMAG package. So being able to update GAP in SAGE would be really really helpful to me.

2017-10-27 05:11:49 +0200 asked a question Upgrading GAP in SAGE

Hello,

I'm attempting to upgrade the version of GAP that is used in SAGE. I installed the most recent version of GAP 4.8.8. When I open SAGE and run

gap.version()
4.8.3

I know I can point the GAP console in SAGE to the 4.8.8 version of GAP by running:

import sage.interfaces.gap
GAP_PATH = "/home/captainhampton/gap4r8/bin/gap.sh"
sage.interfaces.gap.gap_cmd = GAP_PATH

which is where I've installed the 4.8.8 version of GAP. Indeed, if I run

gap.console()
 ┌───────┐   GAP 4.8.8, 20-Aug-2017, build of 2017-10-12 22:05:03 (EDT)
 │  GAP  │   
 └───────┘   Architecture: x86_64-pc-linux-gnu-gcc-default64
 Libs used:  gmp, readline
 Loading the library and packages ...
 Components: trans 1.0, prim 2.1, small* 1.0, id* 1.0
 Packages:   AClib 1.2, Alnuth 3.0.0, AtlasRep 1.5.1, AutPGrp 1.8, Browse 1.8.7, CRISP 1.4.4, Cryst 4.1.12, CrystCat 1.1.6, CTblLib 1.2.2, FactInt 1.5.4, FGA 1.3.1, GAPDoc 1.6, 
             IO 4.4.6, IRREDSOL 1.4, LAGUNA 3.7.0, Polenta 1.3.7, Polycyclic 2.11, RadiRoot 2.7, ResClasses 4.6.0, Sophus 1.23, SpinSym 1.5, TomLib 1.2.6, Utils 0.46
 Try '??help' for help. See also '?copyright', '?cite' and '?authors'

However, if in SAGE, this does not change gap.version(). It still gives 4.8.3. Is there a way I can point this gap to the 4.8.8 version? Thanks.

2017-07-24 21:26:38 +0200 asked a question Suppress automatically generated Python files when running Sage script

Hello,

I'm curious if it is possible to stop Sage from automatically generating corresponding Python files. For instance, if I run a sage script test.sage, then after running sage test.sage, I'll get an automatically generated file called test.sage.py. Is there any way to suppress the generation of this file? I tried to take a look in the documentation, but I couldn't find anything.

Thanks again!