Questions tagged [notebooks]

Questions on Notebooks (*.nb, *.ma in earlier versions), structured interactive documents produced by Mathematica that can contain text, graphics, sound, calculations, typeset expressions, and user interface elements.

Filter by
Sorted by
Tagged with
5
votes
1answer
140 views

What is keyboard shortcut combination for ResourceFunction?

I have seen in some notebooks that functions called with ResourceFunction["PairwiseScatterPlot"] appear with a red set of square brackets enclosing a red ...
3
votes
0answers
241 views

What is the best way to compare two notebooks?

I have two quite large notebooks with minimal differences. To compare them, I currently put them side by side and compare with my eyes, which feels quite inefficient. What are better ways to do this? ...
11
votes
1answer
450 views

LyX-like LaTeX in Mathematica Text Cells

Lately I've been learning more about the Wolfram Language, and I've become particularly enamored with the stated goals of the Mathematica notebook interface. I've used Mathematica exclusively as a &...
0
votes
1answer
82 views

Nested groups of cells

I want to accomplish two things: Be able to minimize long function definitions and other blocks of code. To this end, I grouped each such block with a Text-style title that I can double-click to open ...
0
votes
1answer
55 views

Is it possible to renumber a notebook without rerunning it?

When I prepare a notebook to share with others, I like the numbering of the code cells to start from 0 and to increment predictably to make them more readable, but the only way I know to do this is by ...
0
votes
1answer
52 views

How to load a function from an external notebook that creates a docked cells toolbar?

I coded a compact toolbar in its own file nbtaskmate.nb for various common notebook tasks which I would like to load onto any notebook I might have open with a ...
2
votes
0answers
52 views

What are key differences between InputNotebook and EvaluationNotebook?

I am still new to Mathematica but advancing to a point of programming notebook and cell manipulations using native commands. Sometimes they call for specifying ...
2
votes
0answers
50 views

Suggest allowing new color brackets

By now I have spent a bit of effort in writing Mathematica notebook for my analysis tasks and appreciate the power of the Mathematica language. At the same time, I also discover that a significant ...
2
votes
1answer
38 views

Keep a log of evaluated expressions

Sometimes I perform some calculations, export the results and a week later I notice something odd with one of the exported files. I still keep the notebooks with the calculations but sometimes certain ...
0
votes
1answer
104 views

How to programmatically Evaluate Notebook (all cells in an open notebook) rather than from Evaluation menu? [duplicate]

I am working on a DockedCells toolbar for common tasks like Save, ClearAll, scrolling, etc., ...
9
votes
0answers
191 views

Has the Undo command really been settled? On version 12.1 it only works sporadically. What are some reasons it drops steps?

Although Undo has been around since version 10 (before my time) I've noticed that sometimes it works just fine up to the moment of the last ...
3
votes
1answer
96 views

How to convert function to MenuSetup.tr form

I have a function that removes any surrounding [] {} or () from the current selection of the notebook given by NotebookObject[]. ...
3
votes
1answer
78 views

Deleting a notebook cell using only the keyboard

I am working on a laptop (thus I don't have the numeric pad). To erase a cell in Mathematica I always have to look on the right of the notebook window to find the bracket associated to the line, and ...
0
votes
0answers
40 views

Suppressing output when defining a function that opens a notebook

I have a command to open a new notebook and generate a reference table. It is basically this with 2+2 replaced by a large table command: ...
2
votes
0answers
67 views

Can't save notebook. Save Dialogue opens "Stylesheet Dialogue" instead

I tried both CTRL+S as well as File->Save. But this both produces the dialogue shown below. Save As opens a new empty notebook. Why does this happen and how do I fix it?
5
votes
1answer
145 views

Evaluate section by button click

I have a section in my notebook devoted to unit testing, since I'm not comfortable to use the built-in system. I'd like to evaluate the entire section by button click. But I get lost in the notebook ...
1
vote
0answers
50 views

How to use export and schedule tasks to backup entire contents of an notebook at regular time intervals?

I am sorry I don't have any code to share so I would like your ideas. Although there is an AutoSave feature in Mathematica it lacks usefulness as it cannot be ...
0
votes
0answers
78 views

Corrupted Mathematica file

It has occurred several times that Mathematica notebooks seem to get corrupted probably by cloud services (happened with dropbox, NutShare). Sometimes, an entire cell or chapter/section become ...
3
votes
0answers
60 views

With notebook's default context set to "Unique to each cell group", how do I make "Evaluate in Place" work in a text cell?

With the notebook's default context set to "Unique to each cell group", I have: x=1 The value of x = x where the second line is a text cell with an ...
2
votes
0answers
57 views

Issue with calling one notebook from inside another one

I am calling one notebook (N2) from inside another notebook (N1). The results are transferred correctly from the second notebook to the first one. But when I try to compare the results from the two ...
5
votes
1answer
162 views

How can I prevent Mathematica from cutting sentences in the middle when printing strings?

I have a very simple but annoying problem. Consider the following example: ...
0
votes
1answer
65 views

Change in "boldness" in 3d graphics in Mathematica 12.1.1 while rotating

After updating mathematica from version 12.0 to 12.1.1,I noticed that 3D graphics change their boldness while being rotated.Is there a way to turn this off?It becomes annoying.Below are the attached ...
0
votes
0answers
60 views

What's this strange notebook icon with a vertical line?

Does anyone know what this icon means? I've tried searching, and I've tried creating one notebook of each type. Thanks
1
vote
0answers
40 views

How to retrieve the original mathematical expressions from some sort of scripts?

I quit my Mathematica notebook session mid-computation. When I reopen it, the mathematical expression disappeared leaving something like ...
4
votes
1answer
96 views

Is there a way to construct more/deeper layer of subsection?

We know in a notebook there are Sections, Subsections and Subsubsections. I wonder is there a way to construct something like Subsubsubsection and Subsubsubsub...subsection? I ask this because when I ...
11
votes
2answers
253 views

i_:0|1 varies in v12.1: incompatible change or bug?

Just check i_: 0 | 1 // FullForm In v12.0 or earlier the output is Alternatives[Optional[Pattern[i, Blank[]], 0], 1] But in ...
0
votes
0answers
35 views

Please help validate autoSave function or refactor for better performance

I finally have my autoSave[] function that appears to work. Although it does automatically save file the DateString (dynamic in-...
0
votes
1answer
183 views

'x' occurs twice in a nested scoping construct, in a way that is likely to be an error

I am defining the following innocent looking function (which defines a linear function passing through two given points): ...
2
votes
0answers
56 views

Can Mathematica be set to remind user to save after a set number of unsaved edits have occurred or after a set amount of time has passed?

I lost half a night's work just now because after about 6 months of learning and working with Mathematica it finally decided to crash on me for the very first time. Yeah my bad. At least I can ...
3
votes
0answers
63 views

linking to a cell in a Notebook from an outside program

In MS OneNote I can link to a Paragraph, so that when I open that link from an external program (like Windows Explorer), it'll tell OneNote to open itself and then open that Paragraph. I simply right-...
1
vote
0answers
101 views

How can i change IDE color theme of Mathematica Wolfram? [duplicate]

I'm a new in mathematica wolfram, please help how can i change IDE colors theme's, text and background? I can't work with bright white screen? I use Mathematica 12.1. and want color theme like a ...
11
votes
0answers
288 views

How to use Mathematica in academic paper writing?

The Mathematica notebook is a great avenue for inspiring and realising research ideas. However, I do feel there are several missing jigsaws in the picture of writing academic paper fully in ...
3
votes
0answers
37 views

Importing notebooks with definitions that cause messages during formatting

According to reference pages, Quiet "does not quiet messages that occur during formatting", which typically is just a nuisance, but it seems to affect ...
0
votes
1answer
56 views

Are PDF Archives of Notebooks; Good Idea

Question: Is it a good practice to print PDF of your notebooks? I am starting to accumulate several NBs. They are saved in OneDrive. I have not turned off the Auto-TimeStamping feature. (Don't care ...
1
vote
1answer
54 views

Importing Lines of Code from Another Notebook

I'm trying to access lines of code from another Mathematica notebook using NotebookImport NotebookImport[FileNameJoin@{NotebookDirectory[], "QA.nb"}, _] Stuff in ...
3
votes
1answer
61 views

Matching symbols in assignments using NotebookImport

How can symbols from assignments, ie left hand side in expressions Set and SetDelayed be matched after importing using ...
2
votes
0answers
60 views

Who Defines Symbol \$MySource

When I start up a fresh executing Mathematica on my MacOS system and I open a Notebook file there is always one symbol defined in the Global context. This symbol is \$MySource and it points (via a ...
1
vote
0answers
40 views

NotebookEvaluate via URL - or Google Drive format

Is there an option or other method to run EvaluateNotebook for remote notebooks, ie EvaluateNotebook[url-to-notebook] in other words evaluate remote notebooks in ...
1
vote
0answers
43 views

NotebookDirectory in NotebookEvaluate

Suppose Notebook A calls NotebookEvaluate[Notebook B]. Notebook B calls NotebookDirectory[]. Naturally, NotebookDirectory[] returns the directory of Notebook B. Is there an option to have ...
0
votes
2answers
32 views

suggestion needed for running a model in a NB1 while data is imported from NB2

I want to iteratively run a set of scenarios. There are two notebooks NB1 and NB2. The former includes the following system of 2 ...
2
votes
0answers
64 views

How to save a copy of the current notebook without opening it?

I want to save a copy of the current notebook using Mathematica code (* the notebook that's open is foo.nb *) NotebookSave[SelectedNotebook[], "bar.nb"] After ...
3
votes
0answers
134 views

using NotebookOpen with the Wolfram Engine

I try to use NotebookOpen with the Wolfram Engine. As far as I know Wolfram Engine does not include the notebook interface, but it does include the FrontEnd ...
9
votes
1answer
125 views

obtain properly formatted code from autogenerated package

Overview: I have written a few mathematica packages, always using the method of writing my code in a mathematica notebook and letting mathematica autogenerate the .m package file. Currently I do not ...
0
votes
0answers
67 views

Is the option 'WindowTitle' working in 12.1 for Windows?

It is not possible to change to option FullFileName at WindowTitle in the window of Global Preferences (version 12.1 in Windows ...
7
votes
2answers
146 views

InputField with carriage return in cloud notebooks?

I'm looking for a way of constructing a multi-line InputField in a cloud notebook. That is, a text field that supports the following five behaviors: The 'Enter' ...
5
votes
1answer
124 views

Convert a Classic Slideshow to an ordinary notebook

I have several Classic Slideshow presentations originally created 3 or 4 years ago. I would like to convert these to ordinary Mathematica notebooks, removing all the slideshow-related paraphernalia ...
6
votes
1answer
136 views

Convert between string and expression representation of boxes

Boxes may be represented as expressions or as strings. How can I convert between the two forms? In particular, how can I convert from the string representation to the expression representation? ...
3
votes
0answers
85 views

How to use the old kernel in a newer version of MMa

I am used to the conveniences of MMA 11.3 such as: can undo some times, autocomplete codes, and so on, however I have to run some functions in the version 5.2. So I installed Mathematica V11.3 and V5....
2
votes
1answer
67 views

"Auto-loading" a .m file

I have a .m (say e.g. file1.m) file with various definitions that gets sourced by another notebook using the command Needs["file1`"]. If file1.m is in the ~/....
2
votes
1answer
153 views

How can I create a template for Mathematica notebook with predefined initialization cell?

I have created an initialization cell with options. I would like to create a template, which already contains these cells, when I open a new notebook. Is there any opportunity to create such a ...

1 2
3
4 5
23