First time here? Check out the FAQ!

Ask Your Question
0

Where are stored gif files by default

asked 8 years ago

Laurent B gravatar image

updated 8 years ago

Ok I know this is a stupid question. (But i spend already half an hour on it :( ) After using a.save('myanime') on a animate I can't find the gif file (which is the default extension AFAIK) To be more specific:

I am using sage on a linux debian (sage recenlty returned to the debian archives !!:D!!) so I launch sage in terminal (the binary is installed in my /usr/bin ) and the files seemes to be stored in stuff like

/home/myusername/.sage/sage_notebook.sagenb/home/__store__/2/21/212/2123/admin/9 ... Is it right ?

In case yes it is painful to look for something outside fromethe sage notebook and I would like to integrate the .gif in another web pages. Maybe I can choose where to save the gif ?

Preview: (hide)

Comments

We'll have to know more about how you are using Sage in this case - sage notebook, Sage Math Cloud, command line, etc. The default location really depends on this.

kcrisman gravatar imagekcrisman ( 8 years ago )

Well ok, sorry to the people who read this ... you can save it where you want by myanime.save('/home/myusername/myfolder/myfilename') My bad .... :( :| :8

Laurent B gravatar imageLaurent B ( 8 years ago )

Not a bad at all! Many people reading this won't know anything about file names or paths. Feel free to accept John's answer if it helped, and then others will know what to do when they are trying it out.

kcrisman gravatar imagekcrisman ( 8 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 8 years ago

If you execute pwd in Sage, it will print the working directory, which ought to be where files are saved by default (unless, as you point out, you give an explicit path -- probably the best solution).

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

1 follower

Stats

Asked: 8 years ago

Seen: 266 times

Last updated: Feb 01 '17