Questions tagged [localsymbol]

For questions related to the V10.2+ functionality LocalObject and V11.1+ PersistentObject.

Filter by
Sorted by
Tagged with
5 votes
2 answers
229 views

Local symbols and variables in Module

Is it allowed to define local functions inside the Module in Mathematica? For example, out of the two codes below which one is correct? First: ...
Harken's user avatar
  • 95
3 votes
0 answers
261 views

ResourceFunction cannot find cached local version

When I try to use ResourceFunction it doesn't find a file. I'm afraid it's because my user name on Windows include spaces and an "é". ...
jjagmath's user avatar
  • 411
1 vote
0 answers
85 views

Recursiveness in backtracking algorithm

In order to familiarise with using basic algorithms in Mathematica, I am coding a sudoku solver using a backtracking algorithm. I am treating the sudoku itself as an association (I want to learn to ...
Andoni Royo's user avatar
1 vote
1 answer
49 views

Why is LocalSymbol treated differently inside a Module scope?

Wanting to persist credentials entered via a dialog. While doing so I wanted to scope them by prepending a type to the symbol name. Came across this behavior which I find odd: ...
SEngstrom's user avatar
  • 1,711
3 votes
1 answer
73 views

Generating Manipulate Controls for Indexed Variables

I would like to know a method to share variables between Manipulate environments. I understand that the variables used in controllers are a kind of local ones and ...
Satoshi Oota's user avatar
12 votes
1 answer
157 views

How to implement a resumable Table?

Motivation (my sob stories) Too many times I've run a notebook for hours and then Mathematica crashes (FE or Kernel, mostly FE) and things are lost. I've made various attempts at custom solutions ...
M.R.'s user avatar
  • 31.2k
2 votes
1 answer
48 views

Why is the variable x not locally scope in the StringExpression?

Clear[x] StringCases["abcadcacb","a"~~x_~~"c"->x] {b,d} ...
Lance's user avatar
  • 21
3 votes
2 answers
317 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
0 answers
46 views

LocalSymbol remains unevaluated in autoload package?

I am using LocalSymbol to store some database credentials. I put a statement like this in a user-level autoload package: ...
mfvonh's user avatar
  • 8,442
0 votes
0 answers
69 views

Bug with `LocalObjects` leaking evaluation of `LocalSymbol`

...
masterxilo's user avatar
  • 5,689
4 votes
2 answers
110 views

List all LocalSymbols

I was working with a LocalSymbol, but after I deleted the cell I came back to the notebook hours later only to forget the name of the variable! Is there anyway to see a full list of the named ...
M.R.'s user avatar
  • 31.2k