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

how to get longer Dataset labels in notebook display?

In a dataset, I have many 7-character labels with a common prefix. In a notebook, I see only the first three characters in column headers, which means I see only the prefix. (Win 10; Mma 12) The ...
1
vote
0answers
81 views

Create new cell that is not part of any group of cells (not grouped)

I'd like to create a new cell that is not grouped with the previous cell The documentation on creating a new cell says this: To Create a New Cell: Move the pointer in the notebook window until it ...
5
votes
2answers
156 views

progress indicator without dynamic

I'm looking for some construction of progress indicator, with chars, numbers, etc... but without use of any Dynamic functions (Monitor and etc...). The Any ergonomic tools for the command line kernel? ...
6
votes
1answer
101 views

How to delete an option from a notebook

The Q&A How to unset an notebook option programmatically? nearly asks the same question, but the focus there is on how to unset an option that has been given a value. I just want to undo a ...
3
votes
2answers
305 views

Accidental notebook formatting?

As I was trying to save my notebook by hitting ctrl + s, I might have hit a different letter by accident and something unexpected happened: An extra row appeared ...
1
vote
0answers
31 views

Open all notebooks in Working mode?

Is there a way to specify this as a global setting that oversides an individual notebook screen environment setting? Motivation: I have a folder of many slideshows and need to change this manually ...
1
vote
1answer
39 views

How to delete the magnification button (lower right)

I'd like to remove that button because there is a white bar on the bottom with nothing on it other than this button. For someone who uses black backround, this is a bit annoying. What can I do?
2
votes
0answers
81 views

LaTeX/Markdown in notebook

I know that there is the wonderful MaTeX, which is a third party package, but is there a way to duplicate the Jupyter notebook functionality, where one can have ...
1
vote
1answer
95 views

Quickly restoring default notebook display color and font

(Not a duplicate. I've checked How to "undo" SetOptions (restore defaults)? and others.) Suppose I change some display options, e.g.: ...
3
votes
1answer
95 views

Project and notebook design

I have been using Mathematica now for a little over a year...this started off in maybe a modern 'classic' way of having to solve symbolic mathematics and related plus the want to learn a CAS (and more)...
0
votes
2answers
93 views

Only evaluate assignments in a notebook

Maybe I'm not using the best programming practices in Mathematica, but my notebooks usually contain a mixture of "definitions" and "computations" with these definitions. Say, ...
0
votes
1answer
85 views

How to restore broken Automatic cell grouping behavior?

By default output cells are grouped with the input cell from which they are generated (note the nested cell brackets on the right): Sometimes it is desirable to group manually input cell with ...
1
vote
2answers
77 views

Delete pre-existing output under EvaluationCell[] from CellProlog

We know that there is an efficient way to delete all output from the EvaluationNotebook[]: ...
5
votes
1answer
118 views

Is there a (simple!) way to convert all initialization cells of a document to normal cells?

I like to work with initialization cells. During the different stages of development of my notebooks, I however often need to change those. If they are scattered throughout the notebook, it is ...
1
vote
2answers
89 views

How to export a cell in Messages console to PDF?

Using V12 on windows. This is the problem. I am calling an external function (Rubi in this case, but it could be anything), which ends up printing a cell (image) to the Console. I simply want to ...
2
votes
2answers
113 views

What causes Autonumbering to stop working after “Evaluating” Notebook in 12.0

Bug introduced in 12.0 I'm using "Section" autonumbering in a notebook that contains text and calculations. Normally my "Section" style numbering looks like: ...
1
vote
1answer
67 views

Notebook to run on batches of files

I have a notebook that Imports files from a folder and processes and stores outputs into another folder. It works well with small number of files, however, when there's a large number of input files,...
0
votes
0answers
44 views

how to append one notebook at the end of another

I developed and tested two pieces of a new program separately from older programs. For this it wasn't too bad to copy and paste old cells and test as I went. But now I have the two sizeable program ...
3
votes
1answer
132 views

An alternative to (%%…%) (k times) [closed]

Sometimes it may be useful to use (%%…%) (k times) to get the kth previous result in a notebook instead of setting a variable. However, if I want to get the 8th previous result, for example, I would ...
5
votes
1answer
217 views

How to export all graphics from a notebook?

The problem I have a notebook consisting of around 50 expressions like following: data = Table[i, {i, 10}]; ListPlot[data (*, some Plot options *)] I want to ...
9
votes
1answer
127 views

Notebook with version-dependent cells

I want to make a notebook with the following special feature: some of its cells show up only when the notebook is opened in for instance versions 11 and 12, but are hidden if the notebook is opened in ...
3
votes
2answers
117 views

Drawing line in notebook with Mathematica command

I have a for loop that makes plots iteratively, in between the plots, I would like to draw a line in the notebook. Is there a command that is the equivalent of doing this: https://reference.wolfram....
2
votes
1answer
72 views

Hiding an evaluated cell as the evaluation completes - Self-hiding

I use expressions to create "control panels" to set dynamic variables to control the evaluation of other expressions in a large notebook. For example: I would like the expressions that create these ...
27
votes
2answers
821 views

Using the Wolfram Language in a Commercial Product

Background I am currently consulting with a client that is using Mathematica to prototype a number of proprietary algorithms. Many man-hours of work have gone into the development of these algorithms ...
5
votes
4answers
254 views

How to search within notebooks on Windows 10?

I have a lot of notebooks scattered in my downloads, documents and desktop folder. I have all the required locations on Windows indexing options but if I look at Advanced Options and File Types and nb ...
1
vote
0answers
35 views

Using input in notebook TOC to Open at page 50 of a notebook

Already I have made a Table of Contents (TOC) notebook. In it are buttons which when pressed load very long notebooks, like say notebook ZZZ, which contains research notes. TOC works great. ...
0
votes
1answer
137 views

Turning computation in a notebook into a function

I have a piece of code that I'd like to turn into a function. I'm aware of modules and saw this post. The problem is that my code is quite long, containing all kinds of functions of the form ...
5
votes
0answers
52 views

How to force a desired numeration of equations in Book/Monograph StyleSheet?

I am writing a text in the MMA > Format > StyleSheet > Book > Monograph StyleSheet. I have a problem with the automatic numeration of "EquationNumbered" cells. ...
12
votes
1answer
471 views

How do I remove all comments in a Mathematica notebook?

Is there an option to delete every comment enclosed within (* *)s for a whole notebook? Or is it possible to do it with some string processing?
0
votes
0answers
68 views

Run only a part of a notebook

Is it possible to run only a part of a notebook? I have a long notebook which takes forever to evaluate, so I was wondering if it was possible to run only a couple of cells instead of the whole ...
8
votes
2answers
463 views

How to delete all messages in the message window programmatically?

By evaluating some Mathematica commands, I wish to get the equivalent effect as selecting Delete All Messages on the message window.
2
votes
2answers
198 views

How to detect when the evaluation queue is empty?

Mathematica provides $Post, whose value, if set, is applied to every output expression. In particular, if one sets ...
4
votes
1answer
449 views

Can a Mathematica notebook be programmed to work as a LaTeX editor? [duplicate]

A short example code will show that the answer to this question is yes. The example code (which I give in my answer) is for a simple LaTeX editor that is almost a drop-in replacement for TeXworks. ...
14
votes
2answers
762 views

Mathematica notebook opening off the screen

I have an issue with opening Mathematica notebook. I'm using Student version of Mathematica 12.0 on Windows 10. When I initiate the Mathematica or create a new document from the start page, it opens ...
3
votes
0answers
74 views

Auto-completion for Python commands in console of Mathematica notebooks [closed]

A great feature introduced in Mathematica v11.3 is the embedded external language cell: https://www.wolfram.com/language/12/external-system-integration/evaluate-python-in-a-notebook.html?product=...
0
votes
0answers
46 views

Running a complex notebook from a different master notebook?

I am trying to use the Dynamo notebook (https://www.ssc.wisc.edu/~whs/dynamo/dynamo_3S_v1.4.1.nb) in a loop over parameters. Basically, this software takes one matrix as input, solves ODEs and some ...
2
votes
1answer
74 views

Open, Evaluate and Close notebooks sequentially

I wanna Open, Evaluate and Close notebooks sequentially. Code from question here ...
1
vote
0answers
31 views

Controlling the baseline position of a fraction numerator in a notebook style?

I'm using a built-in Notebook style "Equation" from the "Book/Textbook.nb" stylesheet. When entering fractions, the space between the bottom of the text in the numerator and the fraction line is too ...
4
votes
3answers
444 views

How do pure functions differ from functions defined with SetDelayed?

Why is it that f[{{a_, b_}, {c_, d_}}] := (a z + b)/(c z + d) will return (2 + z)/(4 + 3 z) on evaluating ...
2
votes
0answers
186 views

How to generate a table of contents?

This answer is several years old and while the code still works I was wondering if there was any update from the community or Wolfram. The online references still point to AuthorTools which seems to ...
2
votes
1answer
37 views

How to apply AlphabeticSort to a code cell?

I've got a single code cell in a notebook with lots of Usage messages in no particular order. I'd like to alphabetize them, but doing it manually would be a ...
0
votes
2answers
114 views

How does one use option CellGroupingRules?

It seems that Manual Cell Grouping is broken in 12.0.0.0 (at least in Linux). If one pastes a cell, then any cell bracketing gets "chopped" at the paste position. This bug affects a large project of ...
5
votes
2answers
176 views

How to execute this code on startup?

Every time I open a new notebook I have to manually evaluate this code in that notebook. In order order to stop my cursor moving to a new cell. How would I automate this? I would love this ...
7
votes
1answer
85 views

New input cell style with a custom evaluator

I'm interested to implement a custom input style which would appear (mostly?) like a normal "Input" Cell, but which would ...
1
vote
2answers
118 views

Expand/collapse option for Toolbar

When creating a docked cell, the toolbar stays forever visible and somewhat "eats up" space. Since I do not use the different buttons all the time, is there a way to make the toolbar expand/collapse?
4
votes
1answer
957 views

How to use Mathematica in AWS cloud?

I have a free account in AWS cloud for 1 year for $750$ hours. How to run Mathematica in AWS cloud? And is Mathematica chargeable in AWS cloud?
0
votes
1answer
78 views

Automatic indentation of text and equations depending on Style

I have a rule when writing text and equations. Starting from the Section environment, each text/equation that sits inside Section...
0
votes
0answers
43 views

Saving remembered function when closing down notebook [duplicate]

I have functions defined to remember their values f[x_]:=f[x] I would like to be able to close a notebook without losing the computed values, what is the ...
9
votes
1answer
86 views

What are the conseqences of setting TrackCellChangeTimes to False? How are CellChangeTimes useful?

I know there are discussions on this site about version control, etc. And it appears that CellChangeTimes are used for this purpose, but how? As an individual ...
3
votes
1answer
50 views

Using an image as a CellDingbat

I'm writing code that generates a report notebook using a defined style. I would like to display an image (a logo) in the title cell along with the title itself. How can this be done? Example: ...

1 2
3
4 5
22