Hot answers tagged

5

Normally, as @Hausdorff mentioned, you won't get -0.2*{0, 1, 0, 0} + 0.4*{2, 0, 0, 0} + 0.11*{0, 0, 2, 0} + 0.7*{0, 0, 1, 0} as output due to immediate evaluation. But if this is only a simplified example of yours and you're somehow able to preserve the elements in the output, try something like this: assoc = Association[1 -> a, 2 -> b, 3 -> c, 4 -&...


4

Using NotebookEventActions with the option PassEventsUp -> True gives the desired behavior in Version 11.3 (Windows 10 - 64 bit): ClearAll[activateE] activateE:= Block[{}, edown = True;]; SetOptions[EvaluationNotebook[], NotebookEventActions -> {{"KeyDown", "e"} :> activateE, PassEventsUp -> True}] A variation: Toggle ...


2

Case 1: Enter divides up independent lines of input. Nothing peculiar here, seems to me. Case 2: that has to do with InputForm (which is an output wrapper and has its own magic behavior) and nothing to do with Enter there. If you try the following, you'll notice that the first output of InputForm is not shown either, but x is: InputForm[Sin[x]] x InputForm[...


Only top voted, non community-wiki answers of a minimum length are eligible