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
0
votes
0answers
17 views

Why does NotebookApply highlight an additional character?

Here is a button that surrounds the selection in square brackets ...
2
votes
1answer
67 views

Execute notebook from command line?

Starting with a notebook CDoc.nb that contains one input cell: CreateDocument["\ttest"] If I evaluate this in the ...
2
votes
2answers
74 views

Quickly invoking a certain set of commands

Say I want to be able, in an arbitrary notebook, to quickly invoke a cell containing the commands NotebookFileName[] DateString[] What are good ways to get to be ...
0
votes
0answers
29 views

Why is Mathematica at StackExchange so much better than Wolfram Community for finding answers? [migrated]

I've noticed that you must wait sometimes days to find halfass answers at Wolfram Community but when posting similar questions at StackExchange Mathematica answers sometimes come within minutes and ...
3
votes
1answer
121 views

Why does the Frontend slow down in long sessions?

I'm running Mathematica 12.1.1 on my Windows 10 laptop (Dell Latitude E5550 with Intel iCore 5, 8 GB RAM). My MMA sessions tend to be very long, sometimes extending on over days and weeks, interrupted ...
1
vote
0answers
18 views

How to change Echo output font size including EchoLabel within an entire Notebook?

I am creating a notebook template. I have Input and Output font size set at 10 but the Echo font size is 12. How do I change Echo to font size of 10? I cannot find a setting for this in Option ...
1
vote
0answers
67 views

Can you create an indexed list of all Wolfram functions within a notebook? [closed]

Can you create a summary list of all Wolfram functions used within a whole notebook? Searched long and hard- no clear documentation found.
5
votes
1answer
73 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 ...
2
votes
0answers
75 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? ...
9
votes
1answer
237 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
32 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
32 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
40 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
36 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
45 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 ...
0
votes
0answers
24 views

Turn off output as input

When I evaluate an expression inside a notebook the result can be used as input. Sometimes the output is long and tedious and by accidentally clicking on it the notebook freezes for short period of ...
2
votes
1answer
30 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
55 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., ...
8
votes
0answers
122 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
75 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
42 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
23 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: ...
0
votes
0answers
41 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
75 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
35 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
46 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
53 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
48 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
154 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: ...
1
vote
1answer
58 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
55 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
37 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 ...
3
votes
1answer
61 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
246 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
29 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
82 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
54 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 ...
1
vote
0answers
29 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
84 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 ...
10
votes
0answers
207 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
30 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
51 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
52 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
56 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
55 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
36 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
28 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
28 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 ...
1
vote
0answers
37 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 ...
2
votes
0answers
58 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 ...

1
2 3 4 5
22