Timeline for What is the real default CellEvaluationFunction?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 28, 2013 at 5:23 | comment | added | Mr.Wizard | @Rojo Thanks for your thoughts on this. I'm hoping there is some undocumented function like this that we can use, rather than having to construct one as you describe (and risk introducing all kinds of subtle bugs). | |
Jul 28, 2013 at 3:06 | comment | added | Rojo |
The main loop splitting seeeeems to me happens before the CellEvaluationFunction gets evaluated by the kernel, so I don't have high hopes for an unhacky clean solution. But who knows
|
|
Jul 28, 2013 at 3:00 | comment | added | Rojo |
@Mr.Wizard, the labels is just a matter of using CellLabel -> ($Line /. l_ :> ToString@Unevaluated@Out@l) . If you care about getting the main loop split for every line, you can also code it but, that's just hacking down the hack. I wouldn't know how to programatically "really" split the main loop. Other than using other hacks like an invisible notebook and NotebookEvaluate , hummm
|
|
Jul 27, 2013 at 13:58 | comment | added | bobknight | You are right, I was indeed surprised of the difference. I'm still looking at some alternatives, to no avail. | |
Jul 27, 2013 at 13:46 | comment | added | Mr.Wizard |
Regarding your update, I'm sorry to inform you that you're being fooled by evaluation order. If you use these methods you will see that the entirety of CellEvaluationFunction -> (#) & is the Function , which by itself is inert, therefore you are not making an Option setting at all.
|
|
Jul 27, 2013 at 12:26 | history | edited | bobknight | CC BY-SA 3.0 |
added 8 characters in body
|
Jul 27, 2013 at 12:19 | comment | added | Mr.Wizard |
Bob, thanks for responding. I fear I haven't phrased this question adequately. I pointed out that using (# &) in place of Identity causes this to fail. The thing is I want to use CellEvaluationFunction to modify the Box data (like $PreRead ), then send it along to the kernel as usual. So far everything I've tried has failed. Sure, I can get a kind of output and display it with CellPrint but it doesn't have the Out[xx]= labels and is a hack.
|
|
Jul 27, 2013 at 12:14 | history | answered | bobknight | CC BY-SA 3.0 |