Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

Hiding number cell

已查看 29 次
跳至第一个未读帖子

Miguel

未读,
2007年12月3日 05:40:282007/12/3
收件人
How can I to hide the number of cels (In and Output) for a notebook?

Bob Hanlon

未读,
2007年12月3日 07:11:422007/12/3
收件人
Menu

Mathematica/Preferences.../Evaluation

Uncheck box labeled "Show In/Out names"


Bob Hanlon

Szabolcs Horvát

未读,
2007年12月3日 07:13:452007/12/3
收件人
Miguel wrote:
> How can I to hide the number of cels (In and Output) for a notebook?
>

In Mathematica 6, go to Edit -> Preferences -> Evaluation -> Show In/Out
names. But be warned: If you hide the In/Out labels, you won't know
the order in which the cells were executed and this may lead to
unpleasant surprises.

--
Szabolcs

Jean-Marc Gulliet

未读,
2007年12月3日 07:18:532007/12/3
收件人
Miguel wrote:

> How can I to hide the number of cels (In and Output) for a notebook?

v5.2: menu Kernel -> Show In/Out Names (check or uncheck as desired)

v6.0: menu Edit -> Preferences -> Evaluation -> Show In/Out Names (check
or uncheck as desired)

Regards,
--
Jean-Marc

Kevin J. McCann

未读,
2007年12月4日 04:21:352007/12/4
收件人
For 6.0.x use the Option Inspector (ctl-shift-O)

At the top of OI pick the window Show Option Values: Global Preferences
if you wish to turn off In/Out for all nb's for all time.

Then set: Cell Options -> Cell Labels -> ShowCellLabel ->False

Kevin

--

Kevin J. McCann
Research Associate Professor
JCET/Physics
Physics Building
University of Maryland, Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250

DrMajorBob

未读,
2007年12月4日 04:36:472007/12/4
收件人
I never allow In/Out labels (they're hideous in a notebook, more so when
posting to the group, and VERY inconvenient for a reader pasting back into
a notebook)...

And I have noticed no surprises whatsoever, unpleasant or otherwise.

I suppose it's all a matter of what you get used to.

Bobby

On Mon, 03 Dec 2007 06:11:17 -0600, Szabolcs Horvát <szho...@gmail.com>
wrote:

> Miguel wrote:
>> How can I to hide the number of cels (In and Output) for a notebook?
>>
>

> In Mathematica 6, go to Edit -> Preferences -> Evaluation -> Show In/Out


> names. But be warned: If you hide the In/Out labels, you won't know
> the order in which the cells were executed and this may lead to
> unpleasant surprises.
>

--
DrMaj...@bigfoot.com

Szabolcs Horvát

未读,
2007年12月4日 04:37:482007/12/4
收件人
On Dec 3, 2007 7:56 PM, DrMajorBob <drmaj...@bigfoot.com> wrote:
> I never allow In/Out labels (they're hideous in a notebook, more so when
> posting to the group, and VERY inconvenient for a reader pasting back into
> a notebook)...

Well, it is just a matter of taste :-D It is possible to copy without
In/Out labels, but I like to include them in MathGroup postings to
make the posts more readable, and make the distinction between input
and output cells clear. I also copy the cells from messages
one-by-one to see which output was generated from which input.

>
> And I have noticed no surprises whatsoever, unpleasant or otherwise.
>

I included that warning only because in the past there were a few
posts from new users who got confused by the lack of direct
correspondence between cell contents and kernel state. If you're more
organized than me and can keep track of which cells were evaluated in
what order, than of course there won't be any unpleasant surprises!
:-) The same goes for TraditionalForm vs StandardForm output.

Cheers,
Szabolcs

DrMajorBob

未读,
2007年12月5日 07:22:352007/12/5
收件人
Unlike you, perhaps, I do not READ code or output in an e-mail -- I
immediately (if it looks vaguely interesting) paste it into Mathematica
and run it. Frequently I find the code doesn't do what the post says it
does, and even more often, I want to modify it and see what happens THEN,
so this seems a useful strategy.

That frequently means, of course, that I've pasted output cells as well as
input, so I spend a few seconds deleting them. But even if I don't delete
them, it usually makes no difference. I usually don't paste interspersed
textual comments, but sometimes I do, and I have to delete those too.
Generally they're not in-line with the code (they certainly shouldn't
be!), so it's not hard to tell what's what. (* I'm not talking about
Mathematica comments, although I never use those, either. Until now. *)

Deleting In[..] and Out[..] "crap" (as I call it) is slightly more
tedious... it's usually in-line, and deleting it is mandatory, since the
code won't run while they are present.

It's true that posts without In and Out may (at times) leave a reader
wondering which lines are input and which are output (which to delete
under my strategy described above)... but evaluating them one at a time
(or all at once) will generally make it clear in seconds. Anyway, I think
an experienced reader can tell input from output most of the time just by
looking.

As for knowing in what order you've evaluated things... I evaluate from
the top down. Strange, I know, but that's just me! If I change anything I
reevaluate from there down, and if in doubt, I evaluate everything
(top-down) to that point. One line that, in fact, I often evaluate out of
order is:

Quit

but then I delete that cell.

Over time I've developed second-nature habits to support the overall
strategy. As you have done for your own strategy, of course.

Any number of things can cause me to delete an e-mail precipitously... and
a dozen In/Out instances is frequently one of them.

Nobody out there really needs my help, of course, so... to each his own!

Bobby

On Tue, 04 Dec 2007 03:27:32 -0600, Szabolcs Horvát <szho...@gmail.com>
wrote:

> On Dec 3, 2007 7:56 PM, DrMajorBob <drmaj...@bigfoot.com> wrote:

--
DrMaj...@bigfoot.com

0 个新帖子