I am writing a code that I will put on the server side of SAGE/notebook (i.e. in the SAGE_PATH, not locally in a sheet or attached to a sheet. I want this code to know the name of the user launching it, how can I have it?
| 1 | initial version |
I am writing a code that I will put on the server side of SAGE/notebook (i.e. in the SAGE_PATH, not locally in a sheet or attached to a sheet. I want this code to know the name of the user launching it, how can I have it?
| 2 | No.2 Revision |
I am writing a code that I will put on the server side of SAGE/notebook (i.e. in the SAGE_PATH, not locally in a sheet or attached to a sheet.
sheet).
I want this code to know the name of the user launching it, how can I have it?
| 3 | No.3 Revision |
I am writing a code that I will put on the server side of SAGE/notebook (i.e. in the SAGE_PATH, not locally in a sheet or attached to a sheet). I want this code to know the name of the user launching it, how can I have it?
following this forum, I found an ugly way to do it:
DATA.split('/home/sageservice/nbfiles.sagenb/home/')[0].split('sage_notebook.sagenb/home/')[1].split('/')[0]
tell me if you have better
| 4 | No.4 Revision |
I am writing a code that I will put on the server side of SAGE/notebook (i.e. in the SAGE_PATH, not locally in a sheet or attached to a sheet). I want this code to know the name of the user launching it, how can I have it?
following this forumhttp://https://groups.google.com/forum/?fromgroups=#!topic/sage-notebook/aBd1ATWFIKc , I found an ugly way to do it:
DATA.split('/home/sageservice/nbfiles.sagenb/home/')[0].split('sage_notebook.sagenb/home/')[1].split('/')[0]
tell me if you have better
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.