Ask Your Question
0

Python compiler in Sage Notebook

asked 2012-09-05 11:02:26 -0600

anonymous user

Anonymous

Do you know which version of Python has been providing in Sage Notebook?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2012-09-05 12:16:48 -0600

updated 2012-09-05 12:21:43 -0600

Evaluating sys.version should tell you the Python version. Running on my computer:

sage: sys.version
'2.7.3 (default, Sep  3 2012, 13:19:42) \n[GCC 4.6.3]'

On sagenb.org:

'2.7.3 (default, Jul 25 2012, 14:50:10) \n[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)]'

The first few characters tell me that it's using Python 2.7.3, in either case.

Edit: if you want to check the version number in some code, it's probably better to use sys.version_info.

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: 2012-09-05 11:02:26 -0600

Seen: 143 times

Last updated: Sep 05 '12