Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.1K Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to save output and use them latter on?

Posted 5 years ago
POSTED BY: Fansa Koné
3 Replies
Posted 5 years ago

Thank you @Hans Milton I'll try to adapt and see if it work in my case. In my case I used the save command, it's working in simplest code, but when I try to use it in my more complex code, I don't get the right thing. I just do not know what is the problem.

Thank you for your time.

POSTED BY: Fansa Koné
Posted 5 years ago

Saving the result of a computation done in one notebook, and then reuse the result in a later Mathematica session? Using Iconize could be a way to do it.

In the source notebook do the computation and Iconize the result:

pairs = SolveValues[{x^2 + y^2 == z^2, x < 20, y < 20, Element[{x, y, z}, PositiveIntegers], x < y}, {x, y}]

Iconize[pairs // Normal, "Saved calculation result"]

Save the source notebook and restart Mathematica.

Open the source notebook. Copy the icon by marking it and Ctrl+C

enter image description here

Paste the icon in a new notebook and evaluate. The computational results from the source notebook will now be available in the new Mathematica session.

enter image description here

POSTED BY: Hans Milton

Welcome to Wolfram Community!
Please make sure you know the rules: https://wolfr.am/READ-1ST
Please next time, do NOT post massive code and ask to debug it. Minimize your questions to concise code examples pinpointing your issue.

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard