Ask Your Question
0

Using the small group library in Sage notebook

asked 2017-06-29 20:46:35 +0100

vukov gravatar image

updated 2017-06-29 21:32:38 +0100

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 "_sage_input_9.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("c2FnZSAtaSBkYXRhYmFzZV9nYXA="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>

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

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-06-30 03:33:50 +0100

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

Stats

Asked: 2017-06-29 20:46:35 +0100

Seen: 294 times

Last updated: Jun 30 '17