如何关闭笔记本中的初始化单元? [英] How to close initialization cell in Notebook?

查看:26
本文介绍了如何关闭笔记本中的初始化单元?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的笔记本中,我有一个相当大的初始化单元.怎么让它可以关闭?我的意思是如何将这个单元格卷成一行并能够将其展开?

In my Notebook I have a fairly large initialization cell. How to make it close-able? I mean how can I roll up this cell in one line with ability to unroll it back?

推荐答案

我找到了解决方案.我应该在初始化单元格之前创建一个文本单元格,例如这是一个不错的单元格:

I have found the solution. I should create a text cell before my initialization cell, for example here is a nice cell:

Cell[TextData[StyleBox["Initialization cell(s)",
 FontFamily->"Courier New",
 FontSize->14]], "Text",
 CellFrame->True, ShowGroupOpener->True,
 Background->GrayLevel[0.85]]

然后我应该选择这个单元格和下一个(初始化)单元格,然后从上下文菜单中选择组单元格".现在,我可以通过双击窗口右侧的单元格括号将这个组卷在与第一个文本单元格对应的一行中.这就是我搜索的内容.感谢 Andrew Moylan 和 Brett Champion.

Then I should select this cell and the next (initialization) cell and then select from the context menu "Group Cells". Now I can roll up this group in one line corresponding to the first text cell by double-clicking its cell bracket at right of window. This is what I searched for. Thanks Andrew Moylan and Brett Champion.

这篇关于如何关闭笔记本中的初始化单元?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆