Ask Your Question
1

Reseting magma tab completion data

asked 2011-02-11 11:22:32 -0500

David Jordan gravatar image

updated 2011-06-16 07:46:33 -0500

Kelvin Li gravatar image

Hello,

I have been attempting to use the magma interface functionality in the notebook() web interface. It seems to work (our school has a magma license, and it is able to connect). However, the first time I attempted tab completion in the notebook GUI, it seemed to freeze. Not knowing any better, I stopped evaluation; afterwards I received an error message indicating that I needed to wait awhile for a cache with all the tab completion data to be compiled. However, this was too late, and somehow it seems to have written a blank tab completion cache.

I don't know where this cache is stored, or how to trigger the interface to remake the cache. Can anyone offer assistance?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2011-02-12 02:11:54 -0500

niles gravatar image

I don't know for sure, but probably it is somewhere in ~/.sage There is a subdirectory there having to do with the notebook, and presumably the tab completion data is somewhere inside. Probably there's no great harm in deleting some of these files (unless you have important data in the notebook -- if so, save it elsewhere first!).

As an aside, this probably qualifies as a bug in the notebook interface to magma -- let us know if you have further difficulties, or other comments about how this should or shouldn't work.

edit flag offensive delete link more

Comments

Thanks so much! Indeed, there was a file called " magma_intrinsic_cache.sobj" which had been created with only garbage the first time, because I had interrupted the evaluation. Deleting that made it work.

David Jordan gravatar imageDavid Jordan ( 2011-02-12 09:33:33 -0500 )edit

As to the issue of fixing this permanently: The notebook did say "processing..." but didn't give any other indication that the tab completion process would take a particularly long time, or that there was any danger in aborting, until I after I hit "interrupt", at which point it released a message warning me that it would take a few minutes to set up (but it was too late, as I had already aborted). Also, once I had messed it up, there seemed to be nowhere in the documentation telling me how to fix it, and no methods in the "magma" object (e.g. magma.cleanup() ) to address things within the notebook. It just didn't respond to the tab key any longer. So while it was a user error on my part which caused it, I guess maybe some more robust handling and some documentation could help.

David Jordan gravatar imageDavid Jordan ( 2011-02-12 09:38:57 -0500 )edit

Anyhow, thanks again! I am a graduate student in math and am employing Sage and its cousins in a range of different problems. I love that Sage can interface with Gap and Magma, the latter of which has some more robust algorithms for non-commutative algebra.

David Jordan gravatar imageDavid Jordan ( 2011-02-12 09:40:55 -0500 )edit

Glad to hear that worked -- I wholeheartedly agree about better error handling and notification :)

niles gravatar imageniles ( 2011-02-13 01:52:56 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-02-11 11:22:32 -0500

Seen: 111 times

Last updated: Feb 12 '11