Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Command to get current user of the notebook ?

The only command I found :

user = DATA.split('/home/sageservice/nbfiles.sagenb/home/')[0].split('sage_notebook.sagenb/home/')[1].split('/')[0];

parses a path to the current worksheet and returns the user which owns the current worksheet. This name may be different of the current user, in the case of a shared worksheet. The username I am looking for is in fact the one that is displayed on the top line of the screen...

Command to get current user of the notebook ?

The only command I found :

user = DATA.split('/home/sageservice/nbfiles.sagenb/home/')[0].split('sage_notebook.sagenb/home/')[1].split('/')[0];

parses a path to the current worksheet and returns the * user which owns the current worksheet. This name may be different of the *current user, in the case of a shared worksheet. The username I am looking for is in fact the one that is displayed on the top line of the screen...

Command to get current user of the notebook ?

The only command I found :

user = DATA.split('/home/sageservice/nbfiles.sagenb/home/')[0].split('sage_notebook.sagenb/home/')[1].split('/')[0];

parses a path to the current worksheet and returns the * user which owns the current worksheet. This name may be different of the *current user, in the case of a shared worksheet. The username I am looking for is in fact the one that is displayed on the top line of the screen...