Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • $\begingroup$ In the documentation pages, this seems to be done through the stylesheet. They set the cell option CellContext -> CellGroup on both the "Input" and "Output" styles. Examine FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "Wolfram", "Reference.nb"}]. $\endgroup$ Commented Dec 12, 2019 at 12:38
  • 1
    $\begingroup$ Sorry, I don't use the cloud version much and am unfamiliar many such things. I tried adding private StyleDefinitions to a cloud notebook. I took them from a desktop notebook, in which CellContext -> CellGroup works properly. However, on the cloud, the StyleDefinitions have no effect. This might be a limitation of the WolframCloud. Maybe someone else will come along who has better knowledge than me. $\endgroup$ Commented Dec 12, 2019 at 13:04
  • 1
    $\begingroup$ Here is the StyleDefinitions from my desktop notebook: StyleDefinitions -> Notebook[{Cell[StyleData[StyleDefinitions -> "Default.nb"]], Cell[StyleData["Input"], CellContext -> CellGroup, MenuSortingValue -> 10000], Cell[StyleData["Output"], CellContext -> CellGroup, MenuSortingValue -> 10000]}, WindowSize -> {808, 905}, WindowMargins -> {{20, Automatic}, {Automatic, 44}}, FrontEndVersion -> "12.0 for Mac OS X x86 (64-bit) (April 8, 2019)", StyleDefinitions -> "PrivateStylesheetFormatting.nb"] -- but it didn't work on the cloud, as I said. $\endgroup$ Commented Dec 12, 2019 at 13:06
  • 4
    $\begingroup$ Yes, CellContext is not implemented in its entirety in the cloud yet, but it's on our list. $\endgroup$ Commented Dec 13, 2019 at 9:28
  • 1
    $\begingroup$ To download that stylesheet file from the cloud, you'd have to turn it into a proper cloud object (in your cloud directory) first, e.g. using CopyFile[FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "Wolfram", "Reference.nb"}], CloudObject["Reference.nb"]]. Then you can download it using the in-browser cloud file explorer, or by executing e.g. CopyFile[CloudObject["Reference.nb"], "Reference.nb"] in desktop Mathematica. $\endgroup$ Commented Dec 13, 2019 at 9:30