Ask Your Question
0

Using the small group library in Sage notebook

asked 7 years ago

vukov gravatar image

updated 7 years ago

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
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 7 years ago

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.

Preview: (hide)
link

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

Seen: 345 times

Last updated: Jun 30 '17