Timeline for What syntax refers to "this notebook" object?
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 4, 2016 at 1:07 | comment | added | Dr. belisarius | @Kagaratsch Oh! I asked about that some time ago mathematica.stackexchange.com/q/8761/193 | |
Mar 4, 2016 at 0:06 | comment | added | Kagaratsch | @SjoerdC.deVries OK. I am mostly interested in saving input lines $\textit{before}$ the evaluation even starts, since they can get lost if a calculation hangs up the computer and I have to do a hard restart. | |
Mar 3, 2016 at 22:37 | comment | added | Sjoerd C. de Vries | We're talking about autosaving based on finishing an evaluation, not editing. If the evaluation doesn't produce output then also manually saving would not store your result as there isn't anything added to the FrontEnd. | |
Mar 3, 2016 at 22:20 | vote | accept | Kagaratsch | ||
Mar 3, 2016 at 22:20 | comment | added | Kagaratsch | @SjoerdC.deVries When I edit a notebook through the front end, I expect Mathematica to realize that the notebook has been changed. If it does not do that and stores all actions in the Kernel only, it is doing something wrong in my opinion. | |
Mar 3, 2016 at 18:43 | comment | added | Sjoerd C. de Vries | If a function doesn't produce output it doesn't make sense to save the file at that point as nothing will have changed (output suppressed by a semicolon is not invisibly written in the file; it's simply not there, it's only present in the kernel). | |
Mar 3, 2016 at 18:20 | answer | added | Dr. belisarius | timeline score: 3 | |
Mar 3, 2016 at 18:18 | comment | added | Kagaratsch |
Oh, I see, OK! Thank you! Your solution EvaluationNotebook[ ] works.
|
|
Mar 3, 2016 at 16:51 | comment | added | Dr. belisarius |
That is exactly by design: NotebookAutoSave is a notebook option which specifies whether the notebook should automatically be saved after each piece of output generated by evaluation in it.
|
|
Mar 3, 2016 at 16:48 | comment | added | Kagaratsch | @Dr.belisarius The problem is, it only saves if at least one cell in the notebook has no semicolon, so that an output is produced. If the output of all cells is suppressed with semicolons, and I write a new cell suppressed with semicolon - an evaluation will not save the file. | |
Mar 3, 2016 at 16:39 | comment | added | Dr. belisarius |
nb = EvaluationNotebook[]; SetOptions[EvaluationNotebook[], NotebookAutoSave -> True]; Options[nb, NotebookAutoSave] Returns True
|
|
Mar 3, 2016 at 16:34 | comment | added | Kagaratsch |
@Dr.belisarius If I exectue SetOptions[EvaluationNotebook[], NotebookAutoSave -> True] , write a new cell afterwards and exectue it, the file stays unsaved.
|
|
Mar 3, 2016 at 16:32 | comment | added | Dr. belisarius |
EvaluationNotebook[ ] ?
|
|
Mar 3, 2016 at 16:26 | history | asked | Kagaratsch | CC BY-SA 3.0 |