Skip to main content

Questions tagged [front-end]

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

Filter by
Sorted by
Tagged with
40 votes
4 answers
1k views

What is the difference between Dynamic[x] and Dynamic[ h[x] ] for DynamicModule variables?

Bug introduced in 9.0 or earlier and persisting through 12.0 In 11.3 it is even worse. An example from the accepted answer with a Slider is now broken too: ...
12 votes
1 answer
600 views

Modifying default magnification of documentation

Well, finally, after decades of Mathematica rendering notebooks incorrectly in Windows, and after many years of Mathematica not supporting high-resolution displays in Windows, finally version 12.1 ...
0 votes
1 answer
118 views

Is it possible to split the last cell in a group of cells, such that the split-off part remains grouped with the old group? How can one achieve this?

I have a notebook with several groups of cells grouped with their respective headlines (Title ... down to Subsubsection). I grouped them all manually. It often becomes necessary, to add something to ...
10 votes
1 answer
302 views

ScreenResolutionCompatibilityMode not working in version 14 on Windows 11

I'm facing a problem with the relative scale of fonts and controls in Mathematica. In version 14, the ScreenResolutionCompatibilityMode (in CTRL+SHIFT+O settings) ...
21 votes
10 answers
8k views

Is there a notebook autosave frequency configuration?

I've had Mathematica crash on me a number of times, and have had to recreate notebook contents from the last save point. I was looking for something in the preferences like an autosave frequency ...
3 votes
0 answers
112 views

How to use GPT-4 vision?

How exactly do you call GPT vision, both programmatically and in chat-enabled notebooks? It seems like the image is being downsized when pasted inline, and it is unclear how many prior cells are in ...
0 votes
1 answer
639 views

How to increase the scroll speed with the keyboard?

When I use ctrl + arrow key I can go up or down without moving the cursor (works differently on mac see comment below). However, it's slow, are there frontend functions or options to increase the ...
3 votes
0 answers
64 views

Adding common words or public dictionaries to Mathematica's spell check?

Is there an update to this:Stack Exchange 242114? (That post is a couple years old and has a response from the WRI tech support that the following is impossible and they requested this as a feature) I ...
0 votes
0 answers
26 views

Slow front end in notebook whilst another is runing on a different kernel

I wish to work on a project whilst another is working in the background. As such I utilise two different notebooks each running on a different kernel, let's call them kernel-1 and kernel-2. However, ...
1 vote
1 answer
32 views

Programmatically bring notebook to front, open minimized notebooks? (particularly to Messages)

I want to do the equivalent of navigating to the Window menu and selecting a notebook. In particular, I'm interested in forcing the messages window to the front. My ...
8 votes
2 answers
769 views

Is it possible to hide or delete the new Toolbar in 13.1?

Is it possible to delete or hide the new toolbar in 13.1? How? It's a great resource, however, for my applications, it's not very useful. It's also glitching out making it impossible to use on most ...
3 votes
1 answer
90 views

Defining an output format that doesn't break Ctrl+Shift+I

I'm used to pressing Ctrl+Shift+I (or N if I want a shorter form) to reformat my input cells in a nicer way after editing them, e.g., to remove unnecessary parentheses, add or remove spaces as needed, ...
1 vote
0 answers
41 views

How to detect (and follow) OS dark mode with wolfram language?

I intend to use the DarkMode resource function to switch to and from dark mode in accordance with the appearance of Windows overall. This detection can be achieved ...
2 votes
1 answer
61 views

How to clear NotebookEventActions or unbind keyboard event

I tried to write a function to "Evaluate in Place", as I've shown in: How to get the output of evaluating in place and append the output to the place. But now I have encountered a new ...
1 vote
0 answers
57 views

Weirdly big spacing around ε character

For some reason my ϵ (\[Epsilon]) character has a lot of empty space above and below it. It's best described by a screenshot ...
0 votes
1 answer
137 views

Is it possible to change $SystemCharacterEncoding?

In my machine I get Now let's check the official CP949 map. http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP949.TXT ... ... ... ... The code point of ♥ in CP949 is 2665. (The code ...
5 votes
2 answers
138 views

Display of nested fractions as products of fractions

How do I get Mathematica to avoid displaying nested fractions in outputs, and instead automatically display them as parenthesized, factored-out terms? For example, I would like ...
3 votes
0 answers
43 views

Is this list of Formal Symbols complete? Which versions have unprotected Formal Symbols?

Formal Symbols are protected against being assigned values, making them handy for avoiding name collisions for things like fit parameters and pattern matching. Because formal symbols (and others) like ...
0 votes
0 answers
34 views

Can one force Print[] statements within a Dynamic[] to appear in the Notebook? If so, should one ever do that?

For a simple demostration of the behavior, note that the print statements in this expression appear in the Messages window: ...
2 votes
0 answers
32 views

CreateDialog and GraphicsArray

I think I have hit on a true bug in the Mathematica Front End: If I define plotFunc[] := Print[GraphicsGrid[{{Plot[x^2, {x, 0, 1}], Plot[x^3, {x, 0, 1}]}}]]; I can ...
3 votes
1 answer
76 views

Mathematica 11.3.0, .nb file running for too long on Windows 10

I am doing simple calculation in Mathematica 11.3.0 on Windows 10. Here is my code: ...
55 votes
6 answers
6k views

Why doesn't Mathematica abort evaluation when I tell it to?

This frequently happens to me. I'll have some code, execute it, and realize it's taking a long time. My PC isn't frozen, and Mathematica itself isn't even frozen: I can select stuff in the notebook, ...
2 votes
1 answer
70 views

How do I change my Input/Output labels back to the default?

My notebooks have a non-standard In/Out labels. They look like this: I changed label style so long ago, I can't remember how I did it. I've tried changing the CellLabelTemplate option, but that didn'...
2 votes
1 answer
42 views

Intercepting typos/misstyped symbols and automatically correcting them in the FrontEnd

I often mistype Print[] as PRint[] and Remove[] as REmove[]. I was wondering if its possible to use $NewSymbol to intercept ...
10 votes
1 answer
384 views

Default window size too small in version 12.3 (in Windows 10)

After starting Mathematica 12.3, the default window size is like this, it's too small for me, I don’t want to manually drag the window every time. I have tried this, ...
2 votes
0 answers
27 views

Notebook search with snippets programmatically

The normal "find" function in large notebooks hangs. I'd like to implement in-notebook find programmatically with displayed snippets of the results: ...
10 votes
4 answers
446 views

Visualizing Wicks' contractions using brackets

Given a string like MMMM, what is the easiest way to draw all Wicks contractions similar to the diagram below (from Ch. 2 of Eynard paper)? Example below is for (MMMM), but I need it to work for other ...
4 votes
0 answers
41 views

How can I make Subsubsection collapsible? [duplicate]

In my work, I’ve encountered the need to make sections of level ‘Subsubsection’ collapsible. Sections of higher levels are collapsible by default. However, I’m unable to make Subsubsections ...
1 vote
0 answers
35 views

Why does Mathematica change my type style when using the control button to create expressions?

When I am typing in a text line in Mathematica, if I use a control hotkey, such as Ctrl+/ for creating a fraction or Ctrl+6 for a superscript, the item I create is highlighted in a yellow box and the ...
1 vote
0 answers
45 views

Component stylesheets

A bunch of years back I wrote a reasonably functional IDE for Mathematica development in Mathematica, which required me to tackle a bunch of thorny theming issues In particular, I consistently came ...
1 vote
0 answers
55 views

Monokai Pro Stylesheet

I am searching for a Monokai or Monokai Pro Stylesheet for Mathematica. Any idea of where I could find it or how I could easily import it from Monokai Website?
8 votes
1 answer
79 views

Is it possible to disable and re-enable LaTeX editing?

Entering text with the "^4" shortcut produces a selectable field which--when selected--allows one to edit the TeX. After I am finished editing TeX, the mouse-over highlighting is annoying ...
14 votes
1 answer
386 views

How to have the units for energy show as kW h instead of h kW?

I observe the following in Wolfram Language: Quantity[ 1, "Kilowatt hours" ] (* or "Kilowatts" * "Hours" *) (* 1 h kW *) That looks ...
1 vote
2 answers
112 views

How to write Boxes to a notebook with NotebookWrite?

I would like to write Boxes to a Cell to a notebook (e.g., FractionBox, SuperscriptBox, etc). Here is what I've tried: ...
0 votes
1 answer
114 views

How to define a keyboard shortcut for zoom in or zoom out?

This question was asked here: How to create a shortcut for zooming in/out in Mathematica for Linux 11.3? where a comment mentioned modifying Magnification in ...
4 votes
1 answer
123 views

Recovering results during front-end hang

When working with large expressions I sometimes mistakenly ask Mathematica to show some output which causes the front end to hang. Sometimes it just needs to format notebook contents but sometimes, it ...
1 vote
0 answers
52 views

How to cache results of "Animate" in NotebookDirectory?

I have some Animate cells in my notebook using pattern Animate[doplot[i],...]. When I deploy the notebook on the Web, I want the ...
18 votes
4 answers
2k views

How to refer to result of cell above the current cell?

% refers to the result of the preceding calculation (preceding in time) but this seems not necessarily to be the cell just above a given cell. How can one refer ...
0 votes
0 answers
59 views

Can IntelliJ be made to look like notebook?

I am developing a package for my company, which has grown into multiple sub-packages. I have been using the notebook frontend for .wl files which is ok but I need ...
4 votes
1 answer
149 views

How to create a hyperlink to an executable?

I tried the following: Hyperlink["label","file:C:\\Program Files\\ProgramName\\program.exe"] But when I click the generated link the system ...
4 votes
0 answers
31 views

How do I stop unwanted spaces in Mathematica cells styled as text?

Context: I am working in a Mathematica notebook (I am using 14.0, but the problem to be described was observed in earlier versions. At some time in the past, though, it was not happening.) Problem to ...
49 votes
7 answers
20k views

Is there a way to hide or toggle the visibility of code?

Many of my notebooks have a similar repeating structure, which is very convenient and reliable for my workflow: a chunk of code defining a Manipulate for exploring ...
0 votes
0 answers
40 views

Error message in "Copy As Graphics Expression" of graph

Evaluate the following code: Graph[{{1, 2}, {2, 3}, {3, 1}}] Then right-click the graph and choose ...
1 vote
0 answers
25 views

How to add File->Save to Cloud... and Cell->Cell Properties to my customized toolbar?

I'm programming my own DockedCells toolbar. Everything happened ok, the only things beyond my ability to resolve are: (1) adding a button (or an ...
0 votes
0 answers
60 views

Is it possible to do something automatically before opening .nb?

Is it possible to do something before opening .nb ? I mean, When the Mathematica kernel(?) receives a command to open the .nb, ...
1 vote
0 answers
108 views

Save as custom folder in menu bar in 1 step

I found the solution for myself. For some reasons I decided to write the updated content(=solution) at the top. One important reason is.. that you almost don't need to read after the solution. ...
6 votes
1 answer
280 views

Hyperlinks that open smoothly in the same window

Suppose that I have test1.nb and test2.nb in my local disk. For simplicity, suppose that ...
1 vote
2 answers
165 views

Change default save path/location of an .nb by code

If I open c:\test1\test1.nb and click Mathematica MenuBar - File - Save as... then a window for Save as... pops up, and the default save path is ...
0 votes
0 answers
57 views

Modify save as.. in the menubar (by editing MenuSetup.tr) [duplicate]

I use mathematica V 14.0.0. Is it possible to modify the behavior of Save as.. in the menubar? That is, I want to change the initial full path. We see a window ...
0 votes
0 answers
42 views

Button with a certain built-in function makes error [duplicate]

Note that if I execute NotebookSave[InputNotebook[], SystemDialogInput["FileSave", "C:\\myfile.nb"]] will popup ...

1
2 3 4 5
39