Questions tagged [save]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
40 votes
3 answers
4k views

DumpSave for the forgetful

A few weeks ago I created a big matrix, and in order not to have to recreate it, I stored it using DumpSave["file.mx", variable]. Now I want to read it back in and ...
bill s's user avatar
  • 68.9k
36 votes
2 answers
9k views

How to save all data in all variables so that loading it is fast?

I've got this CSV file I've imported that has tens of millions of lines in it. It takes around 20 minutes to import. I've been working with it for a while and have the processed data spread out in a ...
Mr Alpha's user avatar
  • 3,156
17 votes
1 answer
951 views

Save a C compiled function without losing the blessing of C compiler

Consider the following example: ...
xzczd's user avatar
  • 66k
16 votes
1 answer
1k views

How to save the result in the Notebook (.nb) and shut down the computer when the calculation is done

I have a notebook(.nb) which its calculation is time-consuming and long. I can not observe it if the calculation is done or not. Therefore, I want to : Save the results in the notebook(.nb) ( I do ...
Shellp's user avatar
  • 523
13 votes
1 answer
260 views

How to write crash-robust code?

When a notebook crashes all the work I was doing is lost - I'd like to ameliorate this situation! Is there a way to decorate a symbol so that it is saved to disk whenever it changes, or after a ...
M.R.'s user avatar
  • 31.4k
12 votes
3 answers
29k views

Is it possible to recover an unsaved notebook after closing it?

I just Ctrl-Alt-Deleted out of Mathematica after I crashed it while running. I had not saved it all day and had done quite a lot of work on it. When I reopen the file, it shows a version with none of ...
Shane's user avatar
  • 1,003
11 votes
2 answers
313 views

Saving memoization to disk

I like using memoization (i.e. the construct myFunction[x_]:=myFunction[x]=...) when I have a heavy function that I need to re-evaluate on the same arguments. ...
Ziofil's user avatar
  • 2,470
10 votes
1 answer
585 views

Mathematica and Google Drive backup client

My Mathematica notebooks (as well as all other files I author in my research) are in a directory that is managed by the Google Drive client. This automatically backs up everything I create and I don't ...
Wynne's user avatar
  • 1,516
7 votes
2 answers
1k views

Saving file as .m causes it to save as comments

I am attempting to create a Package and so am saving a notebook with the code from Mathematica's example ...
user1543042's user avatar
7 votes
2 answers
716 views

Saving notebook, excluding output cells, without losing "working notebook" output cells

In order to discuss this, I think it's easiest to start with two definitions. (If there's a standard terminology, please comment.) Working notebook: a notebook that is open and in memory. Disk ...
Rico Picone's user avatar
6 votes
3 answers
5k views

How to convert a Mathematica list in a Python list?

I was wondering if you know, how to save a Mathematica list (variable) such that it can be read later in Python. In order words, how to save a variable ...
Paul's user avatar
  • 181
6 votes
2 answers
176 views

DumpSave'ing while lengthy program runs

tldr: is there a way to load all files following a structure/append to DumpSave file i would like to run a script following the structure: ...
Gladaed's user avatar
  • 987
6 votes
2 answers
581 views

Symbolize Does Not Work in `.m` Files or What?

I have a .nb (notebook) file which I should convert to a .m (mathematica package) file to run it remotely from command line of a ...
Hosein Rahnama's user avatar
6 votes
2 answers
462 views

Save all input History in a log file

I would like to write some code in my init.m to save all inputs {In[1],In[2],...In[lastone]} right before I close the kernel (or exit Mathematica). Such a script ...
tchronis's user avatar
  • 2,445
6 votes
1 answer
699 views

How to save/load (export/import) symbolized variables?

I have a large number of variables/functions with subscripts and use definitions with memoization to avoid recomputing them within a kernel session, but I cannot figure out how to export them all for ...
rob's user avatar
  • 63
6 votes
1 answer
1k views

Save loop output in a data file

I started working on Mathematica today. I'm trying to save the result of a loop in a file as a column, very simple to do, but hard for someone who doesn't know Mathematica syntax. Here is my code: <...
nosumable's user avatar
6 votes
1 answer
114 views

Trace and TracePrint are slow, How to Trace to a file for speed

Trace and TracePrint generates or prints a list of all expressions used in the evaluation of its argument. For complicated ...
rhermans's user avatar
  • 36.5k
5 votes
2 answers
675 views

Find a notebook I had open recently

I worked on a notebook a few weeks ago and now I can't find after looking through the most likely directories. The recent list only has 6 items in it, none of them the notebook in question. Is there a ...
Tyler Durden's user avatar
  • 4,080
5 votes
2 answers
820 views

A better way of handling Module output?

I am sure this has been asked before in a way or another. I need to Save or DumpSave some symbols that contain the result of ...
Rho Phi's user avatar
  • 1,420
5 votes
0 answers
102 views

Restoring previous "Save Selection As..." behavior

I've just upgraded to Mathematica version 11.3 (from 8.0) under MacOS 10.11.5. I noticed that when I "Save Selection As..." or "Save Graphic As...", the pre-filled name is "Untitled" plus the ...
robjohn's user avatar
  • 1,071
4 votes
2 answers
134 views

Save imported sound into a notebook (so I can e-mail it)

At the end of my code I'd like to put an imported (wav) sound. I would then play it with EmitSound[my_sound] when this cell will ...
MajaZupa's user avatar
4 votes
2 answers
223 views

Easier way to save images? [duplicate]

I seek to save my plots without having to save them one at a time. To give you an idea of what I am working with. I am dealing with the eigenbasis of a 50 by 50 tridiagonal matrix. I have plotted each ...
Kevin_H's user avatar
  • 233
4 votes
1 answer
298 views

how to save a file in STL format

good morning. I have written a code of a spherical gyroid when I run it, it gives me a 3D drawing. now I need to save it in STL format for 3D printing. Mathematical doesn't have the option to save the ...
Selamo Basile's user avatar
4 votes
1 answer
61 views

How to retrieve values of a function from a file

I defined the following function: q5e8[z_?NumericQ] := q5e8[z?NumericQ] = NIntegrate[Sin[(2 5 10^8 - v) z]/z^5, {v, 0.1, 2 5 10^8}] As you can see, it is a ...
Fisher's user avatar
  • 179
4 votes
1 answer
55 views

How can I see what Get restored?

Say I save variables x, y, z using ...
Paul R.'s user avatar
  • 877
4 votes
1 answer
109 views

Stop PaletteNotebook from asking to save changes

I have some code, similar to that from this question (not sure where I modified it from, don't think it was actually that question) to open a simple dynamically refreshing palette showing the ...
SPPearce's user avatar
  • 5,653
4 votes
1 answer
330 views

Saving and loading lists of interpolating functions fast and cross-platform

Is there any way to save and load several lists of interpolating functions efficiently and cross-platform? I want to save the resulting interpolating functions of NDSolve which takes very long to ...
Louis Yang's user avatar
4 votes
1 answer
703 views

Saving data from NonlinearModelFit

If you use NonlinearModelFit the results are put into some sort of output package. How do you save these packages so that you can go back to them later? My particular problem is that I generating ...
Hugh's user avatar
  • 16.4k
4 votes
0 answers
160 views

Is there a way to convert the mathematica document into word document in a neat way? [closed]

Is there a way to convert the mathematica document into word document in a neat way? I tried by "save as" command and found something like Risk text format "*.rtf" but still many parts look messy..
Eric's user avatar
  • 219
3 votes
2 answers
2k views

Copy and paste behaviour with Subscript

I tend to use a lot of subscripts in my code, and I am aware that copy and paste of subscripts from Mathematica to MathematicaSE (or any text editor, for that matter) is screwy in the sense that $a_b$ ...
DumpsterDoofus's user avatar
3 votes
3 answers
192 views

How to save expression with its name

I want to save expressions as well as their names in a file. func[i_] := i; Do[func[i] >>> out.m,{i,1,3}]; The output is ...
BabaYaga's user avatar
  • 1,826
3 votes
3 answers
201 views

How can I configure both Mathematica and the FrontEnd (whatever it is) to use the directory of the current notebook when saving/exporting graphics?

My system: Mathematica 11.2, Windows 10 Problem: I am (perpetually) working on my lecture notes, adding graphics produced by Mathematica. Obviously the notebooks I created for this purpose are in the ...
Jyrki Lahtonen's user avatar
3 votes
2 answers
323 views

Alternative to Dump Save

When dealing with large matrices I like to store them in the memory once for all, such that when I restart Mathematica I do not have to wait for a very long computational time of order of minutes. To ...
MKO876's user avatar
  • 63
3 votes
1 answer
208 views

Backing up and restoring all Mathematica notebook variables using 'Put' '>>' and 'Get' `<<`

As discussed here and here, the state of a notebook can be backed up by saving all variables using: DumpSave["backup.mx", "Global`"]; These variables can be ...
Miladiouss's user avatar
  • 1,883
3 votes
1 answer
630 views

Disable cache and pop up

I have a nb file that I have been editing frequently in M 10, but no matter how many times I modify the file or edit the file in M 10 it doesn't seem to update its cache. Everytime I open the file I ...
William's user avatar
  • 7,595
3 votes
1 answer
353 views

Save a notebook with "input" and "output" on the left of all cells

How to make Mathematica save a notebook with "input 1" and "output 1" on the left of cells? If I open a saved notebook, those tags are gone.
user16334's user avatar
3 votes
1 answer
96 views

Can someone please check the given code? How can I save the result of GraphicsGrid as pdf?

I want to have these 3 plots together vertically ...
charmin's user avatar
  • 1,159
3 votes
1 answer
1k views

How to DumpSave all variables or the whole notebook?

Is there a way to DumpSave all the variables in the notebook? Or better whole notebook so that opening it would restore all the definitions.
Al Guy's user avatar
  • 1,610
3 votes
1 answer
83 views

Function to Save/DumpSave without specifying full path

I am trying to create a function that saves a set of symbols into "test.mx" and is easy to use. ...
Albercoc's user avatar
  • 978
3 votes
0 answers
199 views

Why Mathematica says notebook "has changed outside of Mathematica" when saving to text file?

I wanted to export the notebook to plain text file. Given notebook foo.nb, I noticed each time I save the notebook to foo.txt, ...
Nasser's user avatar
  • 143k
3 votes
0 answers
192 views

Simply save a polynomial to a text file, with a symbol change I->%i and w/o NumberMarks

I must be really missing something here because I've tried many things on this link: How do I save a variable or function definition to a file? but still wind up with something I don't want. I have ...
nate's user avatar
  • 445
2 votes
1 answer
254 views

Get (<<) Evaluate File Name

This seems like a simple question due to lack of experience, but I can't seem to find an answer through searching. I am trying to read back a symbol from a DumpSave:...
BenP1192's user avatar
  • 934
2 votes
2 answers
87 views

How can I Save function defintion without its DownValues?

I use functions that memorize their values like this one: ...
Igor Kotelnikov's user avatar
2 votes
2 answers
99 views

Save current data [closed]

I'd like to write the current data, but the Monitor and PutAppend are being written in such a way that the function pot does not match the current variables (a and b). How can I fix this? ...
Mam Mam's user avatar
  • 1,843
2 votes
2 answers
90 views

How can I store vectors in a matrix

I am triying to generate realizations of a Gaussian random process using the KL expansion. For that, I need to multiply an eigenvector for an eigenvalue and a random variable. I have tried ...
slow_learner's user avatar
2 votes
1 answer
291 views

Store large symbolic data in a binary format efficiently?

As far as I understand, the Binary Data feature of Mathematica can efficiently store raw numbers or elements of a given type to binary files. Is there a way to store a large symbolic expression (read -...
Kagaratsch's user avatar
2 votes
1 answer
175 views

How to save values in dynamic fields?

I created a notebook with this line: Grid[{{InputField[Dynamic[x]], Dynamic[x^2]}}] Then, I filled a certain value instead of "x". Then, I closed Mathematica ...
Erel Segal-Halevi's user avatar
2 votes
1 answer
369 views

Error when attempting to save Notebook. Cause and solution?

I am experiencing an error attempting to save a modified Notebook in Mathematica 10 under Windows. The error I get is: ...
Mr.Wizard's user avatar
  • 271k
2 votes
1 answer
313 views

How to save multiple expression in a single file with specified names for the expressions

I could not find any reasonable answer for the following question. (https://www.physicsforums.com/threads/mathematica-output-display.386890/). I have expressions: ...
BabaYaga's user avatar
  • 1,826
2 votes
1 answer
144 views

Merge StyleSheet into a notebook

I have a custom style called style1.nb and I want to install it into a notebook Class01.nb so I can send only the notebook file to my students with the style of style1.nb. Is that possible?
Gonzalo's user avatar
  • 153