Questions related to the Mathematica front-end (graphical user interface).

learn more… | top users | synonyms

2
votes
1answer
47 views

How can one easily toggle the “insufficient version” warning message in CDF and Mathematica?

Unfortunately people use different Mathematica and CDF versions and the default setting of "InsufficientVersionWarning" in MessageOptions is True both in Mathematica and the CDF Player (which is quite ...
5
votes
3answers
89 views

Output code not highlighted when used as input

I have reported this issue: [CASE:3389542] Today, I accidentally found what I believe is an unwanted feature of the front-end, where input code is not appropriately highlighted and the dynamic ...
11
votes
1answer
3k views

How to work around Mathematica hanging when showing a large SparseArray?

Bug introduced in 9.0 and fixed in 9.0.1 In Mathematica 9, if I display any large SparseArray object in the default way (which looks something like ...
2
votes
1answer
112 views

Some symbol does not auto-complete in v10.2

When I input Backsub in Mathematica 10.2 and press Ctrl+K after, I couldn't get Backsubstitution. My OS is Windows 8 32-bit. ...
10
votes
1answer
96 views

How to Copy formatted code without backslashes added?

By default code copied from the FrontEnd is formatted with backslashes added at the ends of lines. For example, evaluating in a Notebook Range[40] and copying ...
20
votes
1answer
1k views

Mathematica 10.1.0.0 (OS X) high CPU usage even for empty notebook

Bug fixed in 10.1.0 (see answer for details) Since update to 10.1.0.0 Mathematica has a high CPU usage even when no evaluation is running (even for empty notebook opened). I am running OS X ...
11
votes
2answers
856 views

Avoiding an unresponsive user interface in OS X

I have found that despite Mathematica's numerous updates, each of which have added much functionality, one fundamental issue remains unaddressed: The unresponsiveness of the UI when I make a mistake ...
9
votes
1answer
144 views

How to test if file exists on the front end machine?

When using a remote Mathematica kernel, how can you test if a file exists on the local front end machine? Of course FileExistsQ cannot be used in this scenario, ...
1
vote
0answers
142 views

How can I protect my notebook file with a password to open and save changes?

I want to protect my .nb file with a password, because now I'm using a free access computer in my university. Everybody student in my university can use that computer and I do not want my .nb file can ...
6
votes
2answers
108 views

How do I maintain notebook state variables between front end/kernel sessions, if those variables are set programmatically rather than via UI widgets?

I need to give a notebook a few simple state variables (counters) that will be saved with the notebook, persist across kernel restarts, etc. From what I've read, using variables defined within a ...
12
votes
1answer
1k views

Opening a notebook from command line in an existing front end instance

I am using Linux, and I would like to be able to programmatically open notebooks in a running Mathematica instance from the command line. Currently, doing something like ...
3
votes
1answer
197 views

How to open notebooks in already running instances of the Front End on Linux? [duplicate]

On Windows and OS X, if Mathematica is already running, double clicking a notebook doesn't open a new Front End instance. Instead it will conveniently open the notebook in the already running ...
17
votes
2answers
411 views

MathKernel doesn't return all Messages

In Mathematica I run this command: Plot[Sin[x], {x, 1, 15}, GridLines -> error] It generates a Plot with this error message: A GridLines specification ...
2
votes
0answers
52 views

Is there a keyboard shortcut that reproduces the code two input cells above the current cursor location?

In Mathematica running on OS X, Cmnd+L is one of my favorite keyboard shortcuts, as it reproduces the code in the input cell above cursor location into the current cell or into a new cell when the ...
2
votes
0answers
92 views

Alt drag does not work properly

When a graphics is displayed, right clicking will bring up the Get Coordinates tool. To select a rectangular region, you can do it manually by selecting the two corners and Alt+C will copy these two ...
0
votes
1answer
99 views

Adding code comments to a module [closed]

What is the best way to comment a long Module? For linear flowing calculations that need not be organised in modules, I usually mix text and math. But how can I do that inside a module, or block, or ...
14
votes
1answer
1k views

Finding a Specific Line in a Package

In a package I am developing, I accidentally left this line Protect[ uncompleted prior to running the package. Mathematica produced this error message ...
7
votes
1answer
169 views

What should I call the messages that appear when the mouse moves over failed graphics output?

I attempted to evaluate the following Plot[x^2, {x, 1, 2}, PlotStyle -> {RGBColor[a]}] which, of course, failed. After the failure, putting my mouse over the ...
11
votes
1answer
105 views

Is there a way to change the indentation behavior of the postfix operator //?

For example, using newlines after // results in some really weird indentation: Ideally, I'd love to be able to do something like this: ...
23
votes
1answer
288 views

Is it possible to maintain user-defined shortcuts in a web-installable package?

There are various posts here on this site about how to add user defined extra keyboard shortcuts for the front end. The problem is how to put them into a better maintable and properly documented ...
11
votes
1answer
98 views

How to disable half-hiding output, when the corresponding input cell is modified

I think it has become less easy to compare the new output, now that the output font color turns gray as soon as something is modified in the input cell. Is there any solution?
3
votes
1answer
98 views

How to get the size of a specific image in the front end?

The title pretty much says it all. One possible point of confusion is that this question is not limited to items with head Image. I don't know what is the ...
1
vote
3answers
172 views

How can I timestamp a notebook?

Ok I must be missing something. I have a section with the "last updated date" in a text cell, I'd like it to autoupdate. Is there a "insert current date" command hidden away in some menu? Edit How ...
3
votes
1answer
55 views

How to access the string of the cell I am typing?

I'm trying to map a keyboard shortcut to google search the contents of the cell I am typing. Here is my code so far: ...
1
vote
0answers
27 views

autocomplete or forward search input histories

I think there are many bash users here. In bash, a forward search of input histories can be done by Ctrl+r, which let you edit your previous similar input and reuse it. Is there a similar function in ...
15
votes
3answers
557 views

Defining symbol shortcuts in the Front End

I was wondering (because I could not find any documentation on this) if it is possible to do shorthand abbreviations for domains or could one define them? E.g. In[1]:= Element[p,Complexes] ...
4
votes
1answer
262 views

How to expand multiple cells at once?

Is there a simple way to expand multiple cells simultaneously? At the moment I am primarily interested in fully expanding "in one fell swoop" all the cells in a documentation window, although I can ...
0
votes
0answers
41 views

How to launch the browser with a given url programatically? [duplicate]

The front-end can do this already for hyperlinks... I was wonder how to do this in general.
21
votes
1answer
224 views

Is there any Mathematica functionality enabling its use for the blind?

A colleague of mine has become blind as the result of a sudden medical misfortune. We want to help him to feel useful and active again. We, however, still cannot determine what can be done and to what ...
7
votes
1answer
753 views

Mathematica 10 crashes on copy/paste

Mathematica 10 crashes in the following (simple) situation: FormulaLookup["gas"] This command will produce a long list of possible formulas. Then I type the ...
15
votes
1answer
387 views

What is the complete list of valid FrontEnd Packet types?

In response to my question How can I get the unchanged Box form of an arbitrary expression? John Fultz answered with a method using the hilariously named ...
1
vote
0answers
89 views

Software Testing (Dynamic, Manipulate, DynamicModule) Interfaces

The main Testing Framework (in both the frontend and Wolfram Workbench) supports unit testing for command-line invocations. Is there a natural way of co-opting this, or perhaps there already exist ...
7
votes
0answers
86 views

NotebookWrite a Cell with WholeCellGroupOpener option [duplicate]

Why NotebookWrite[ EvaluationNotebook[], Cell["ZZ", "Section", WholeCellGroupOpener -> True] ] produces: ...
5
votes
0answers
50 views

How is CellContext->CellGroup supposed to work?

After reading the documentation on the subject, I still cannot get CellContext->CellGroup to work. Here's a simple example. (Unfortunately, I cannot easily ...
7
votes
1answer
151 views

Is it possible to recover the style of the previous version(V8,V9) in Windows?

In Wolfram Mathematica 10 (Windows paltform),the menu bar and files are combined together.When I narrow the window,it will become ugly shown as below! So my question is: Is it possible ...
8
votes
1answer
99 views

How to sort cells?

Is there a way to programmatically reorder the section cells in a notebook alphabetically? For example:
2
votes
0answers
41 views

Mathematica 8 sometimes hangs up over a simple instruction - ask more and it may unhang

Lately Mathematica 8 seems to have an 'underload' buffer where the current instruction is not executed unless it is given a few more tasks to do. This is very weird. Sometimes it takes just one more ...
3
votes
1answer
54 views

How to unset an notebook option programmatically?

This question is related, but not identical, to this one. Suppose one sets a notebook option like this SetOptions[EvaluationNotebook[], Foo->Bar]; ...and ...
0
votes
0answers
43 views

Is there a way to fully restart a Mathematica session from the front end? [duplicate]

Sometimes my Mathematica environment gets sufficiently fouled up that a full restart is the best way to move forward. By "full restart" I mean the equivalent of running ...
6
votes
0answers
129 views

ShowSelection color [closed]

The color of a selection is controlled by the operating system. E.g., enter the following code in separate cells. ...
14
votes
3answers
813 views

Take screenshot of the entire desktop using Mathematica

Is it possible to get a screenshot of the entire desktop directly in Mathematica? I am on Ubuntu running Mathematica 8. For some reason GUIScreenShot[] fails. But ...
19
votes
2answers
666 views

What is the FrontEnd?

Can anyone sort out what the Front-End is, how it is structured and what its relationship to the Kernel is. The FrontEnd is mentioned quite often but elusively avoids to be caught and clearly defined. ...
12
votes
3answers
625 views

How to anchor a Pane's scroll position to the bottom?

Suppose I have a Pane containing some dynamic text, for example that is being updated by a logging function. ...
11
votes
1answer
279 views

Is there a programmatic equivalent of Edit > Find…?

Most things that can be done via the front-end interface in Mathematica can also be accomplished by some function. Is that the case for find-and-replacing? That is, is there some code I could execute ...
4
votes
1answer
109 views

How to toggle visibility of all the evaluatable cells (but not their output)?

I know that I can select individual evaluatable cells and disable their Open property (through Cell > Cell Properties), but ...
2
votes
0answers
151 views

Menu bars on Palette windows don't work properly — any workarounds?

After getting help from Rojo with Menu commands on Palettes and other windows without menu bars? I was able to create a Palette with a menu bar by: Selecting the Palette and opening the Option ...
0
votes
0answers
53 views

Some unexpected behaviour with StyleKeyMapping

Start with a fresh front end & kernel. The expected behaviour with an Input cell should be like this: Input 1and delete ...
4
votes
1answer
101 views

How can I import html fragments as formatted cells?

I see that there is limited support for "HTMLFragment" in Export, but I figured with all the work that went into porting Mathematica into the Wolfram Cloud there should be a way to Import ...
1
vote
0answers
240 views

Annoying window. How to remove it?

Bug introduced in 10.0 and persisting through 10.1.0 or later How do I remove this window from my Mathematica? Unchecking the Debugger menu item as described in How to close the (local) Debug ...
4
votes
1answer
1k views

How to close the (local) Debug window/palette

I have this local debug window that is so annoying How can I hide it? What is the purpose of it?