Tag Info

Hot answers tagged

9

One thing that might help you when investigating in such issues is the LinkSnooper. This is a java program that can be used to set up an additional kernel configuration. When you use this kernel, you can watch all traffic between front-end and kernel. With this, you could look what happens if you evaluate a simple 1+1 FE ---> K: ...


6

This is called the "Cell insertion menu". Its appearance is defined in MiscExpressions.tr via the front end resource "CellInsertionMenu". Notebooks (depending on the stylesheet, of course) have it defined as a "cell insertion point cell" by default: AbsoluteOptions[SelectedNotebook[], "CellInsertionPointCell"] (* -> {CellInsertionPointCell -> ...


6

The front-end-related operations are actually performed by Front End itself. According to the tutorial Executing Notebook Commands Directly in the Front End: When you execute a command like NotebookWrite[obj,data] the actual operation of inserting data into your notebook is performed in the front end. Normally, however, the kernel is needed in order to ...


5

Stealing Lou's example, you can add a couple of options: CreateDocument[ Manipulate[ Plot[Sin[x (1 + a x)], {x, 0, 6}, ImageSize -> Full], {a, 0, 2}], CellMargins -> 0, ShowCellBracket -> False, WindowSize -> Full] If you want those options to be always valid, you can put SetOptions[EvaluationNotebook[],...] into ...


4

CurrentValue[$FrontEndSession, {InputAliases, "xx"}] = "X" or, if you want the new settings to persist across sessions, use CurrentValue[$FrontEnd, {InputAliases, "xx"}] = "X"


4

This specific example works Mathematica 10.0.2: However, there are several variations that do not work and these are tracked by Wolfram, currently as an open issue [247087]. Here is a slight modification of the original example which does not work:


3

I have a partial answer to my question. In order to add menu items, e.g., to submenus of the Format menu for Mathematica version 10.0.1. What to put in the init.m FrontEndExecute[ AddMenuCommands["BackgroundDialog", {Delimiter, MenuItem["Linen",Background->RGBColor[0.980,0.941,0.902]], MenuItem["AliceBlue",Background->RGBColor[0.941,0.973,1.0]], ...


3

This has been fixed in 10.0.2. The longer time now remain in the status windows. On windows 7, 64 bit SetOptions[$FrontEnd, EvaluationCompletionAction -> "ShowTiming"] Plot[{BesselJ[1, x], BesselJ[2, x]}, {x, 0, 10}, PlotPoints -> 1*^5, Filling -> {1 -> {2}}]


2

My answer is based a on Martin John Hadley's. It uses Cells so one need at least V9 for that. But it is quite compact: cellSortByTag[nb_, tagOp_: ToExpression] := Composition[ (SelectionMove[#, Cell, All]; NotebookWrite[nb, #2]) & @@@ # &, Transpose, { #, NotebookRead /@ SortBy[#, tagOp @ CurrentValue[#, CellTags] &]} & ...


2

I was searching for a way to reorder Sections alphabetically and found this question, which I think I've got an answer for. It relies on evaluating the code in a separate notebook, targeting the notebook with your cell tags. In my target notebook (targetNb) I have the following cells: Cell["Typed Cell 1", "Item", CellTags -> {"1", "Zebra", "2"}], ...


2

Not sure about general concept but maybe you can use this minimal example and extend/adjust to your needs: Grid[{{ ListPicker[ Dynamic[selectList, (selectList = #; re = Select[selectList, #[[3]] === "Yes" &]) &], dataImport] , Dynamic @ If[TrueQ[re === {}], "", {"Include ...


1

Not completely an answer but too long for a comment. Having convinced our SysAdmin to grant me access to one compute node by VPN, I managed to connect to one compute node (b1) using the following parameters in the KernelConfiguration submenu in the Evaluation menu. Note that I added both to MLOpen and to Launch command the extra parameter ...


1

First of all, if you use: SetOptions[EvaluationNotebook[], InputAliases -> {"xx" -> "X"}] then you will replace all aliases with this one. But if you only want to add new one, there is a convenient way to add a suboption: CurrentValue[EvaluationNotebook[], {InputAliases, "xx"}] = "X" Now, all previous aliases are preserved. Ok, to the point. I ...


1

NotebookSave saves a Mathematica notebook as is, without converting it to other formats. To convert to other formats, such as PDF, use Export. Example: nb = Notebooks[][[1]] Export["~/Desktop/nb.pdf", nb]


1

The following is a slightly simplified version of your DynamicModule: DynamicModule[{x}, Column[{Button["start", x = 0; RunScheduledTask[x++;, {1, 5}]], Row[{Dynamic[HoldForm[x]], " = ", Dynamic[x]}]}] ] When you evaluate this for the first time, underneath the button you see the output (* FE`x$$82 = FE`x$$82 *) (very likely with a different ...



Only top voted, non community-wiki answers of a minimum length are eligible