Re: Evaluate code fragment without making new cell
- To: mathgroup at smc.vnet.net
- Subject: [mg127175] Re: Evaluate code fragment without making new cell
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Wed, 4 Jul 2012 03:31:33 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201207020925.FAA13343@smc.vnet.net> <4FF17DE6.50400@fundp.ac.be> <201207030221.WAA20729@smc.vnet.net>
- Reply-to: murray at math.umass.edu
The simple, and obvious, way -- to evaluate some but not all lines in an Input cell, as I understand what you want, but without first dividing the single cell into several -- is not to combine the separate pieces into a single Input cell at the start. That is, develop code in smaller chunks, each chunk in a separate Input cell. Then, once you're confident it works, combine the separate cells into a single cell. On 7/2/12 10:21 PM, Nasser M. Abbasi wrote: > On 7/2/2012 5:54 AM, Christoph Lhotka wrote: >> Hi, >> >> doesn't Ctrl+Shift+Enter (on selected text, where ever it is) do this? >> >> Best, >> >> Christoph > > No it does not. > > The above, on my Mathematica 8.04, does Evaluation-in-place. It > replaced the actual code > > x=4; > Sqrt[x] > > by > > 2 > > which is NOT what I wanted. I want to evaluate the above 2 lines > of code WITHOUT making them in one cell. -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305
- References:
- Evaluate code fragment without making new cell for it?
- From: "Nasser M. Abbasi" <nma@12000.org>
- Re: Evaluate code fragment without making new cell for
- From: "Nasser M. Abbasi" <nma@12000.org>
- Evaluate code fragment without making new cell for it?