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

learn more… | top users | synonyms

1
vote
1answer
42 views

How to define a number of infix operators with predefined relative precedences

Reading a number of questions about infix operator notations I want to ask if somebody could reimplement the problem below in a simpler way, say modifying ...
8
votes
0answers
52 views

Why does the Ver. 10.0 FrontEnd lose matching of parentheses when we insert quotations?

I am running Mathematica 10.0.1 on a four-year old iMac running OS 10.6.8. The following irritating behavior occurs regularly: I have a list with parentheses, and later on I need to add something to ...
4
votes
1answer
130 views

How can I prevent SHIFT-ENTER moving the editing cursor?

What I do: Here press Shift+Enter to evaluate. What I get: The cursor disappeared What I want: The cursor retained Workaround: Up Arrow as many times as it takes, Right arrow as many times ...
2
votes
1answer
32 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 ...
8
votes
0answers
50 views

Is this behaviour, producing OutputSizeLimit`Dump`encapsulateOutput, a bug?

Bug introduced in 6.0.0 and persisting through 10.2.0 The input ...
7
votes
1answer
72 views

Prevent 10.2 from creating “Wolfram Mathematica” directory on Linux

Since upgrading to version 10.2.0.0, every time I start the Mathematica front-end it creates a "Wolfram Mathematica" directory under my home directory. (It never seems to put anything in it.) Anybody ...
2
votes
0answers
64 views

Front End does not respond to keys (version 10.2, Linux)

I was often complaining about the front end performance under Linux, but it seems I could pin down a very critical issue. I made a screen-cast that shows how to reproduce the issue Screen-cast on ...
2
votes
1answer
87 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. ...
5
votes
3answers
73 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 ...
8
votes
1answer
84 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
113 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 ...
9
votes
1answer
78 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 ...
5
votes
2answers
66 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 ...
0
votes
1answer
66 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 ...
2
votes
0answers
45 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 ...
5
votes
1answer
98 views

List of Recently Opened Files

If I go to the menu bar and press File I get a list of recently opened files.This would be useful except they are edited and mostly replaced by dots thus making choosing difficult. See the screen shot ...
3
votes
1answer
73 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 ...
2
votes
1answer
44 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
23 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 ...
0
votes
0answers
38 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
183 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 ...
8
votes
0answers
68 views

Floating highlighting bug [duplicate]

At some random point in time the highlighting does not disappear any more. By highlighting I mean transparent boxes appearing for find feature indicating found object, cursor highlighting once you ...
6
votes
0answers
60 views

NotebookWrite a Cell with WholeCellGroupOpener option

Why NotebookWrite[ EvaluationNotebook[], Cell["ZZ", "Section", WholeCellGroupOpener -> True] ] produces: ...
1
vote
0answers
71 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 ...
5
votes
0answers
43 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 ...
22
votes
1answer
238 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 ...
7
votes
1answer
83 views

How to sort cells?

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

Entire notebook merged to one cell after crash

I have just reopened a notebook in Mathematica 10.1 after a crash, and find all cells have been merged, including the labels on input and output cells (In[202] := ...
2
votes
0answers
69 views

Transparent bitmaps in controllers. Problem with initial appearance

Bug reproduced in V10.1 on Win7 I have a problem with images with alpha channel which I want to use as labels on Button etc. Unless I scroll or move cursor over ...
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 ...
1
vote
1answer
32 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
40 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 ...
0
votes
1answer
61 views

Can one upgrade versions directly from Mathematica front end?

The copy of Mathematica I use I get through work. Upgrading this copy is always I time-consuming, pointless chore. I think all of it could be automated. Which makes me wonder: Is there any way to ...
1
vote
1answer
66 views

How to make Mathematica use system GTK style under Linux?

Under Linux, Mathematica uses preinstalled QT themes, but I'm sure that it's possible to make it use system GTK style. How?
1
vote
0answers
56 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 ...
4
votes
0answers
75 views

How to export a Mathematica notebook into Markdown?

Is there a way to do this other than html + pandoc?
5
votes
1answer
55 views

Update/refresh notebook variable color on clear

By default, Mathematica displays variable names already assigned as black while new variables are displayed in blue. When executing Clear["Global`*"], variables ...
18
votes
2answers
571 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. ...
0
votes
0answers
35 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 ...
10
votes
1answer
256 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 ...
5
votes
1answer
51 views

How to set different default cell per section?

In various sections in my notebook I'd like the default cell type to be different, if possible, how can I specify this?
4
votes
1answer
66 views

Is it possible to get the locations and dimensions of all boxes in a StandardForm expression renderation?

I can select all the boxes in a StandardForm rendered expression, like I've selected the left parenthesis in the picture above. Is it possible to get the positions and dimensions of all of these ...
4
votes
1answer
78 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
1answer
39 views

Can one put event listeners to parts of StandardForm expression?

I have a StandardForm expression Is it possible to add an event listener to the variables, parentheses, and plus signs so that when I click them their color changes for example. Maybe it would be ...
3
votes
0answers
50 views

How can I programmatically ungroup cells [closed]

I have a series of ~500 notebook files (created by a colleague), which somehow have had their cell groups modified from the default (perhaps accidentally by said colleague). In order to extract the ...
1
vote
0answers
57 views

Is there a way to simulate / spoof a keypress? [duplicate]

I'm trying to test the functionality of a Dialog window in Mathematica in an automated way. To do so, I need to be able to simulate keypresses to trigger UI elements programmatically. Is there a way ...
2
votes
2answers
72 views

Why doesn't Quantity accept a Dynamic expression as a second argument?

If anyone can help me with this, it would be greatly appreciated. I'm using the following code with the intent of using controls to easily input values and units: ...
1
vote
1answer
51 views

How do you programmatically update a tag using the TaggingRules mechanism?

Consider the following simple front-end code: ...
1
vote
1answer
40 views

Out labels looks strange after turning on magnification

As everything in Mathematica looks too small to me, so I turned on magnification when I am working. It looks good on windows: However, the Out tag is dislocated ...
2
votes
1answer
86 views

Package editor interface

Is there a way to get rid of the unused space on the left of the package editor? What is it's purpose if I configured Mathematica to not show In and ...