Ask Your Question

Using the small group library in Sage notebook

asked 2017-06-29 13:46:35 -0500

vukov gravatar image

updated 2017-06-29 14:32:38 -0500

Is there any way to import groups from the GAP small group library into Sage notebook?

I've tried importing the library using the terminal, but I haven't been able to. When I run

sage -i database_gap

while running sage in the terminal, I get an invalid syntax error.

I am running Mac OS X 10.12.5

When I run sage -i database_gap in the notebook, I get the following error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "", line 10, in <module>
    exec compile(u'open("","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("c2FnZSAtaSBkYXRhYmFzZV9nYXA="),globals())+"\\n"); execfile(os.path.abspath(""))
  File "", line 1, in <module>

  File "/private/var/folders/hn/_c_yl0fj0zlfwvzcy0f5138w0000gp/T/tmpEaYQvh/", line 2
    sage -i database_gap
SyntaxError: invalid syntax
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-06-29 20:33:50 -0500

kcrisman gravatar image

Neither of these is syntax for Sage; they are syntax for the command line before you start Sage.

Once upon a time one could do install_package(package='database_gap') as in this question, but apparently this functionality has now been removed after deprecation - see the documentation. So you will have to use the command line facility, or possibly the "install package" menu item if you are using the Sage app bundle.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2017-06-29 13:46:35 -0500

Seen: 34 times

Last updated: Jun 29