Ask Your Question

Recuperation of a result outside the notebook ?

asked 2022-10-24 23:07:04 +0100

Cyrille gravatar image

updated 2022-10-25 08:45:31 +0100

Is there a way to use a Sagemath result outside a notebook?

edit retag flag offensive close merge delete


Can you explain what you mean? Maybe add an example of what you hope you would be able to do.

John Palmieri gravatar imageJohn Palmieri ( 2022-10-24 23:46:19 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2022-10-25 12:48:35 +0100

Emmanuel Charpentier gravatar image

Python offers lots of possibilities :

  • save your results (if you plan to re-recess these results in anotherSage program or session).

  • Open/create a file, explicitly write your results to this file, close the file (this might be useful...).

  • printyour results, and invoke your program in a command line redirecting your output (useful if you want to be able to use your program from the command line).

Googling Python file I/O may enlighten you...

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


Asked: 2022-10-24 23:07:04 +0100

Seen: 70 times

Last updated: Oct 25 '22