Ask Your Question
0

Import Functions defined in files

asked 2019-01-21 07:55:12 -0600

thetha gravatar image

How to load a file with - functions? Is there any documentation on this?

What happens if there are some variables also defined in this file.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-01-21 08:40:47 -0600

tmonteil gravatar image

Given a file.sage file containing Sage code, you can;

  • attach it with the %attach jupyer magic

    %attach file.sage
    
  • load is with the %load jupyer magic

    %load file.sage
    
  • if you are not using the jupyter notebook, with the load function:

    load('file.sage')
    
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: 2019-01-21 07:55:12 -0600

Seen: 54 times

Last updated: Jan 21