First time here? Check out the FAQ!

Ask Your Question
1

Reseting magma tab completion data

asked 14 years ago

David Jordan gravatar image

updated 13 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 14 years ago

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.

Preview: (hide)
link

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 ( 14 years ago )

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 ( 14 years ago )

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 ( 14 years ago )

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

niles gravatar imageniles ( 14 years ago )

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: 14 years ago

Seen: 445 times

Last updated: Feb 12 '11