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

learn more… | top users | synonyms

1
vote
3answers
77 views

How can I clear the content of my notebook in Mathematica?

The Clear command is for clearing definitions of symbols. Is there any built-in function to clear the work area of my Notebook?
4
votes
1answer
137 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 ...
1
vote
1answer
43 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 ...
11
votes
0answers
250 views

Colored marks appearing in notebook input text?

Bug introduced in 10 and fixed in 10.2 What is the causing these colored marks to appear in my Mathematica notebook? I'm particularly annoyed with the black ovals that occasionally obscure parts of ...
7
votes
1answer
993 views

Manipulate (Linux version of Mathematica)

I'm runnning Mathematica 9 on Ubuntu 11.10. After installing CDF player I still have problem (most of time) with Manipulate. Only way I'm able to change value of a ...
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 ...
16
votes
1answer
513 views

How to add named characters to Mathematica 10?

It appears that native support for the Klingon alphabet has been removed from version 10: \[KlingonA] Syntax::tsntxi: "\"!(\[ KlingonA])\" is incomplete; ...
11
votes
2answers
764 views

How can one define an infix operator with an arbitrary unicode character?

You can setup "UsefulFunction[a, b]" to use custom infix notation "a [LeftRightArrow] b" as follows: ...
7
votes
0answers
152 views

After editing a file Mathematica 10 interprets […]^2 as […(])^2

Bug introduced in 10.0 and persisting through 10.2 or later This is a very weird bug and I don't really know how to reproduce it, so I'll just copy-paste the whole code ...
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 ...
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 ...
7
votes
1answer
73 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 ...
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 ...
11
votes
1answer
2k 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
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. ...
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 ...
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 ...
20
votes
1answer
797 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
773 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 ...
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 ...
12
votes
2answers
145 views

How to create a dynamic expanding DisplayForm's styled like the ones in v10?

The display forms for objects like ClassifierFunction are nice clickable boxes I like this, and now I'm trying to create my a custom version of this for my ...
11
votes
1answer
720 views

How to copy code out of notebook to an external text editor without extra line feeds being added?

I am simply trying to copy code from a cell (input cell) in a notebook, to paste the code into a plain text editor, and not have some lines wrap in the middle. I need to copy the code, as is, to a ...
6
votes
1answer
181 views

Linux: Mathematica crashes when clicking documentation links very fast

Can someone confirm the following behavior: Open a new Mathematica and go to the documentation. Navigate to any reference page (I used RegionPlot) and click ...
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 ...
11
votes
1answer
692 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 ...
2
votes
1answer
159 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
380 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
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 ...
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 ...
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 ...
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 ...
2
votes
0answers
105 views

StyleSheet for custom application

I'm working on a package that needs to be installed into an arbitrary, "non standard" path (i.e., not $BaseDirectory or ...
13
votes
1answer
832 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
146 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 ...
8
votes
3answers
229 views
10
votes
1answer
87 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: ...
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 ...
9
votes
1answer
80 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?
15
votes
3answers
862 views

How to set focus of a dialog window?

I have a dialog, which, when pops up, requests input from the user. How can I set the window up that the focus is on the InputField of the new window (i.e. the ...
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 ...
1
vote
3answers
123 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 ...
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 ...
14
votes
3answers
479 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
171 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
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 ...
4
votes
1answer
75 views

Dynamic cells after Kernel restart/quit:

After quitting the kernel only one Dynamic cell fires. And it does not matter how many are there. ...
7
votes
1answer
671 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 ...