1 | initial version |

You can do the following:

- rename your file with the
`.sage`

extension,`say my_file.sage`

- in this file, instead of just
`[1, 2, 3]`

you should give a name to your object, for example`a=[1, 2, 3]`

- then, from your notebook, you can type
`load('/path/to/my_file.sage')`

, and you will be able to access the Python variable`a`

.

2 | No.2 Revision |

You can do the following:

- rename your file with the
`.sage`

extension, say~~say~~my_file.sage - in this file, instead of just
`[1, 2, 3]`

you should give a name to your object, for example`a=[1, 2, 3]`

- then, from your notebook, you can type
`load('/path/to/my_file.sage')`

, and you will be able to access the Python variable`a`

.

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.