# Tag Info

4

Something like this? disks=Table[Disk[{Sin[phi],Cos[phi]},0.1], {phi, 0,2 Pi(9/10), 2 Pi/10}]; DynamicModule[{clicks=1}, EventHandler[ Graphics[ Dynamic@Take[disks, clicks], PlotRange->1.2{{-1,1}, {-1,1}}], "MouseClicked":>( clicks=Mod[clicks+1, Length@disks,1])] ] or simply ...

5

The answer is, indeed, no. – John Fultz

6

You definitely should not rely on this behavior. There is one and only one proper way to get dynamic behavior for the rhs of a front end option, and that is to wrap Dynamic around the entirety of the option. The only exceptions to this rule at present are certain options which will assume the Dynamic if one doesn't exist, such as CellDynamicExpression and ...

4

Maybe you are looking for something like this. Make a list of the generated cells like this: cells = Cells[GeneratedCell -> True]; Then delete them from the notebook using this NotebookDelete[cells]; This doesn't use the front end I guess. But I'd say that would be nice rather than bad in most cases.

1

I don't know if it will be possible to produce the Cell dingbat et al, as those don't appear on inline cells. However, you can at least get the formatting of your Cell expression by preventing it from being converted to Box form (doubly, making it inert). Here is a practical example: myPrintTemp[expr_Cell] := InternalInheritedBlock[{MakeBoxes}, ...

5

This works : SelectionMove[SelectedNotebook[], All, EvaluationCell]; SelectionMove[SelectedNotebook[], Previous, CellGroup]; FrontEndTokenExecute["SelectionOpenAllGroups"] The problem was that in SelectionMove[SelectedNotebook[], Previous, CellGroup], Previous refers to the current selection which is not well defined when you do the initialization. I ...

1

Here's what I've come up with based on the comments and suggestions posted: cheadings = Table["Col" <> ToString[i], {i, 1, 10}]; rheadings = Table["Row" <> ToString[j], {j, 1, 100}]; data = Table[RandomReal[], {j, 1, 100}, {i, 1, 10}]; Dynamic@Pane[ Grid[{ {"", Pane[TableForm[Insert[data, cheadings, 1]], {500, 15}, ScrollPosition ...

1

One day, WRI should get round to implementing and documenting the TableView function properly. It's frustratingly close to what you want: TableView[data] but its use isn't recommended (and the TableHeadings options are not implemented anyway).

3

I'd say it was possible, but some work would be required to make it slick: Pane[ Column[{ Pane[ Grid[Insert[data, headings, 1], Background -> {None, {LightCyan}}], {800, 15}], Pane[ Grid[data], {800, 200}, Scrollbars -> True] }] ]

13

On my system, setting the following to False works (Mac OS X): (in Preferences->Advanced->"Open Option Inspector")

2

I've also noticed this bug, although buttons/drop down menus do continue to work, for me only sliders become unresponsive after suspend (Ubuntu 12.10/Mathematica 9.0.0.0 x86 64 bits). A possible workaround is thus to change all parameter controls to buttons/dropdown menus by providing a finite list of values the parameter is allowed to take: ...

1

I think the automaticaNumbering is not perfect, I found a way to use AutomaticaNumbering. That is ：Create Your Own Stylesheet. You can search StyleData in Help, And the SectionNumbered gives good example when see the CellExpression, and we can modifiy it in our personal-stylesheet.nb If you want to remove AutomaticaNumbering of some stylesheet, just ...

11

In your situation, the standard approach is usually different. This means, I use something like this only BeginPackage["PQR" ,{"PQRPQRVisualization","PQRPQRUtilities"}] when I need the functionality of the Visualization and Utilities inside my package, not to re-export them. What about creating an directory structure the following way PQR ├── Kernel ...

6

LaunchKernels launches subkernels used for parallel calculations. These are not meant to and cannot be set to as the evaluator for a notebook. To set the evaluator for a notebook, use Evaluation -> Kernel Configuration Options to set up a new kernel, then use Evaluation -> Notebook's Kernel to assign it to the current notebook.

Top 50 recent answers are included