Reputation
8,156
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
29 52
Newest
 Custodian
Impact
~33k people reached

Sep
12
answered How to correctly disconnect from the kernel?
Aug
31
comment Incorrect information displayed when slider is moved (intermittent)
@Mr.Wizard Localizing t would require throwing multiple Blocks into the code to preserve the output form (which would not be preserved by DynamicModule, etc.). I agree that this would be the proper thing to do, but I didn't want to complexify the answer by focusing on points the author didn't ask. Nonetheless, I will point out for posterity that Mr.Wizard is right in saying this is not the code as I would have written it.
Aug
28
answered Incorrect information displayed when slider is moved (intermittent)
Aug
28
comment Automatically close Mathematica
@Kuba it's not possible to do anything like what you're asking for globally for arbitrary Mathematica commands. If you're sticking to fully documented Mathematica functions, you shouldn't ever see interactive prompts unless that's the purpose of the function (e.g., Input). But many of the FE tokens were implemented only for the purpose of user interaction through the menu system, and do not represent the gold standard of end-to-end design that we generally apply to fully documented functions.
Aug
26
comment Automatically close Mathematica
@Kuba, if you run the front end with the -server command-line option, then it will not prompt dialog boxes. But it will also not be usable by the user. This is, for example, how the kernel command UsingFrontEnd launches the kernel. Since you don't provide very much context for your question, it's not clear to me whether this is a useful answer to your question.
Aug
24
awarded  Nice Answer
Aug
24
awarded  front-end
Aug
23
answered Automatically close Mathematica
Aug
20
comment How to do computations simultaneously in multiple notebooks?
If you're using a second kernel, it is not necessary to set the notebook's default context. It's not harmful...the two items are simply not related to one another.
Aug
16
awarded  Nice Answer
Aug
13
awarded  Enlightened
Aug
13
awarded  Nice Answer
Aug
10
answered How to set font color for display formula to be same as the cell in which the display formula resides?
Aug
10
comment Alternative to NotebookLocate or NotebookFind
The v8 solution has another problem. It fails to find cells with multiple cell tags. E.g., a cell with CellTags->{"tag", "abc"}.
Aug
10
comment Alternative to NotebookLocate or NotebookFind
Surely, you want instead NotebookRead /@ Cells[EvaluationNotebook[], CellTags -> "CellTag"]. By using First, you're only getting the first of many cells, or generating an error condition when you try to get the first of zero cells.
Aug
10
answered What are the advantages of using .nb rather than .m files?
Aug
10
comment What is the right way to construct DynamicModule
Using Rule (->) instead of RuleDelayed (:>) is virtually always the wrong thing to do. In your case, for example, it produces output which is subtly broken in ways it will take you a while to figure out (i.e., if you quit and restart the kernel or FE, you'll lose the definition of st2 in any Dynamic contexts).
Aug
7
comment Why are there two separate MathKernel processes running when I start up Mathematica 9?
Accessing the kernel is easy. Just set the Evaluator option to "System". E.g., Dynamic[$PasswordFile, Evaluator -> "System"]. That's exactly how we do it for our code. It doesn't require privileged access or anything. But completion doesn't run through the System kernel. See my answer for an explanation. And, if you destabilize the System kernel...well, that's on you.
Aug
7
awarded  Necromancer
Aug
7
awarded  Revival