5 edited title
| link

How can I make assignments persist amongacross sessions?

    Tweeted twitter.com/StackMma/status/1106797401648611328
4 added 6 characters in body
source | link

How can I make assignmentassignments persist betweenamong sessions?

Yesterday, I imported a large set of data into a MathematicaMathematica notebook and stored each imported list of numbers in a function. For example, I would map a listslist like {10, 20, 30} to a function valuesvalue as shown below

f[0] = {10, 20 30};
f[1] = {40, 50, 60};

With the lists stored in the functions I generated the below chatchart by writing

averageComparisonChart = 
 BarChart[{fpAverages, fpiAverages}, 
  ChartLabels -> {{"FP Quicksort", "FP Insertion Quicksort"}, 
    Range[0, 160, 10]}, 
  AxesLabel -> {HoldForm["Vector size"], 
    HoldForm["Execution time (ms)"]}, 
  PlotLabel -> HoldForm["Quicksort vs. 
 Insertion sort"], 
  LabelStyle -> {GrayLevel[0]}]

which output

bar chart

Before going to bed, I saved my notebook and shut down my computer. Today, all my functions have been reset. For example inputinginputting f[0] outputs f[0] rather than the previously assigned list {10, 20, 30}.

Does anyone know what has caused this issue? How can a loss of data be avoided in the future? Is there a better way to store lists than in functions? Is there a way to restore the values from yesterday?

Related Question

The accepted answer to this question provides a method for creating persistence of data between sessions.

How can I make assignment persist between sessions?

Yesterday, I imported a large set of data into a Mathematica notebook and stored each imported list of numbers in a function. For example, I would map a lists like {10, 20, 30} to a function values as shown below

f[0] = {10, 20 30};
f[1] = {40, 50, 60};

With the lists stored in the functions I generated the below chat by writing

averageComparisonChart = 
 BarChart[{fpAverages, fpiAverages}, 
  ChartLabels -> {{"FP Quicksort", "FP Insertion Quicksort"}, 
    Range[0, 160, 10]}, 
  AxesLabel -> {HoldForm["Vector size"], 
    HoldForm["Execution time (ms)"]}, 
  PlotLabel -> HoldForm["Quicksort vs. Insertion sort"], 
  LabelStyle -> {GrayLevel[0]}]

which output

bar chart

Before going to bed, I saved my notebook and shut down my computer. Today, all my functions have been reset. For example inputing f[0] outputs f[0] rather than the previously assigned list {10, 20, 30}.

Does anyone know what has caused this issue? How can loss of data be avoided in the future? Is there a better way to store lists than in functions? Is there a way to restore the values from yesterday?

Related Question

The accepted answer to this question provides a method for creating persistence of data between sessions.

How can I make assignments persist among sessions?

Yesterday, I imported a large set of data into a Mathematica notebook and stored each imported list of numbers in a function. For example, I would map a list like {10, 20, 30} to a function value as shown below

f[0] = {10, 20 30};
f[1] = {40, 50, 60};

With the lists stored in the functions I generated the below chart by writing

averageComparisonChart = 
 BarChart[{fpAverages, fpiAverages}, 
 ChartLabels -> {{"FP Quicksort", "FP Insertion Quicksort"}, 
 Range[0, 160, 10]}, AxesLabel -> {HoldForm["Vector size"], 
 HoldForm["Execution time (ms)"]}, PlotLabel -> HoldForm["Quicksort vs. 
 Insertion sort"], LabelStyle -> {GrayLevel[0]}]

which output

bar chart

Before going to bed, I saved my notebook and shut down my computer. Today, all my functions have been reset. For example inputting f[0] outputs f[0] rather than the previously assigned list {10, 20, 30}.

Does anyone know what has caused this issue? How can a loss of data be avoided in the future? Is there a better way to store lists than in functions? Is there a way to restore the values from yesterday?

Related Question

The accepted answer to this question provides a method for creating persistence of data between sessions.

3 edited tags; edited title
| link

All function values have been reset after restarting Mathematica How can I make assignment persist between sessions?

    Became Hot Network Question
2 added 232 characters in body
source | link
1
source | link