Ask Your Question

sage, can't run command at notebook

asked 2011-07-19 17:36:29 +0200

anonymous user


I have some Python scripts and I need to run them under notebook.

I run the scripts in %Sage -python <scriptname>.py. It works fine If I run it under sage shell by execfile('/foo/'). It works fine as well

But if I run execfile('/foo/') in Sage Notebook, it complains about

...cannot open shared object file: No such file or directory

It appears to me that the notebook can't find the lib. Does Sage and SageNB uses a separate Library-path and Run-path?

edit retag flag offensive close merge delete


You'll have to give more information about what is in the as well as more of the error message.

Mike Hansen gravatar imageMike Hansen ( 2011-07-22 04:13:44 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2011-07-21 18:58:23 +0200

Shashank gravatar image

execfile('/foo/') works for me. Check the path.

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


Asked: 2011-07-19 17:36:29 +0200

Seen: 313 times

Last updated: Jul 21 '11