Ask Your Question
1

Recuperation of a result outside the notebook ?

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

Cyrille gravatar image

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

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

edit retag flag offensive close merge delete

Comments

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 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Stats

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

Seen: 76 times

Last updated: Oct 25 '22