First time here? Check out the FAQ!

Ask Your Question
0

sage, can't run command at notebook

asked 13 years ago

anonymous user

Anonymous

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/bar.py'). It works fine as well

But if I run execfile('/foo/bar.py') 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?

Preview: (hide)

Comments

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

Mike Hansen gravatar imageMike Hansen ( 13 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 13 years ago

Shashank gravatar image

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

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

Stats

Asked: 13 years ago

Seen: 419 times

Last updated: Jul 21 '11