Ask Your Question
0

Where are stored gif files by default

asked 2017-01-31 22:35:02 +0100

Laurent B gravatar image

updated 2017-02-01 09:46:07 +0100

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 ?

edit retag flag offensive close merge delete

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 ( 2017-01-31 23:14:59 +0100 )edit

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 ( 2017-02-01 09:50:55 +0100 )edit

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 ( 2017-02-01 20:32:35 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-02-01 17:33:19 +0100

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).

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: 2017-01-31 22:35:02 +0100

Seen: 254 times

Last updated: Feb 01 '17