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
4
votes
2answers
58 views

How to run all cells above current one? [duplicate]

In Jupyter notebook, there is a Run All Above (a certain cell) option. Is there something like Run All Above in Mathematica?
0
votes
1answer
24 views

Problems in running mathematica file in the background

I have converted my Mathematica notebook into .m file and need to run it in the background on a remote server. I am launching the run from my laptop, on a remote workstation. I need it to obey the ...
3
votes
0answers
46 views

Save PaletteNotebook without any meta-data

The SE Uploader is created with CreateWindow[PaletteNotebook[...]] and then I need to save this under the FrontEnd/Palettes ...
1
vote
0answers
18 views

Resizing Imported GIF Image

I have a gif image that I am trying to import into the Mathematica Notebook, and I found the accepted answer of this question very useful: Is it possible to insert an animated image into Mathematica ...
1
vote
1answer
31 views

Getting a stored variable from its value

Given a numerical value, is it possible to check whether that value is stored in (or defines) some variable in the notebook? Maybe if I could list all of the defined variables, then I could simply ...
0
votes
0answers
15 views

Searching across multiple notebooks for given list of functions / symbols

Is there a method to search across multiple notebooks for each in a given list of function or symbol name? The input should be a list of function or defined symbols, and the output would be an ...
2
votes
0answers
34 views

How to rotate a binary embedded image in a graphic containing Postscript?

We have a collection of old notebooks containing cells with Postscript graphics. They relied on various external programs to help generate them so I can't regenerate these easily in a newer version of ...
2
votes
1answer
59 views

Why does PageBreakAbove / PageBreakBelow not work here?

Bug introduced in 12.0 or earlier and persisting through 12.1 Create a notebook having interspersed cells of figures and text: ...
2
votes
0answers
39 views

Why do comments sometimes become Null instead of being removed completely?

Consider the following definition: Piecewise[{{(*comment*)-1, x > 0}, {0, True}}] This is interpreted as intended, with the comment being simply removed, ...
3
votes
1answer
21 views

NotebookImporting sections from documention notebook?

How can I use NotebookImport for grabbing "ExampleSection" cells? ...
2
votes
0answers
40 views

How to add a Checkbox into a text cell? [duplicate]

Before working in my code I wrote tests on a textcell . I want to add a checkbox at the end of each sentence to track my progress. So, I will checkbox if the program pass. How to add a Checkbox into ...
2
votes
1answer
32 views

Stylesheet control of system panel font colors?

I'm trying to make a custom dark mode stylesheet, and I started with Kuba's great DarkPackage. The issue is how to deal with text in panels (you can barely see the white-on-white text, unless you ...
3
votes
2answers
121 views

How can I run a notebook from another notebook multiple times?

I have a notebook which I want to execute multiple times and changing one parameter each time. Intuitively, I want to do something like this: ...
3
votes
1answer
96 views

Control page width when using ExportPacket[…, “InputText”]

Suppose we have a cell like this: ...
2
votes
1answer
53 views

Updating the name of nb file after closing/running it

Suppose I have a nb file named as 240119.nb [date of today]. Now If tomorrow I open it and do something, then upon closing it, It should be renamed automatically as ...
3
votes
0answers
40 views

Mathematica file corrupted with the syntax error “Spacer[{0., 0.}], Selectable -> False”

My Mathematica file is corrupted. The error says There was a syntax error on line 34457 in the file: xxx.nb. The error was:Spacer[{0., 0.}], Selectable -> False ...
3
votes
1answer
57 views

Automatically load init.m without sharing CellContext

I'm trying to set up Mathematica such that all functions/variables defined in my init.m are automatically loaded into any new notebook I open. This works as a default, but I would also ideally like to ...
9
votes
1answer
182 views

How to share stylesheets (with a preview)?

I have never understood how to easily generate an image preview for a given stylesheet. I also am unclear on how to easily share one. So I'm looking for an implementation or good 3rd party solution ...
3
votes
0answers
60 views

Is it possible to turn “FunctionResource” Notebook into ResourceObject or registered LocalObject without FrontEnd?

TL;DR The problem boils down to how to convert a correctly prepared submission Notebook into a ResourceObject suitable for ...
2
votes
0answers
36 views

Having problems with exporting a large notebook as a PDF file

I have a largish notebook (300 hundred pages when printed) that I have exported to PDF in the past (version 11?). I am having trouble with this in version 12.0. A PDF is produced (except once), but ...
0
votes
0answers
68 views

How can I programmatically extract the text content from a Notebook's cell definition? [duplicate]

Given the Notebook cell definition below from the Wolfram Function Repository as an example: ...
7
votes
3answers
128 views

Move input cursor to after cell group

Bug introduced in 8 or earlier and persisting through 12.0 I am looking for a way to move the input cursor to after the current cell group. The following example illustrates the situation I am ...
3
votes
1answer
84 views

A button that creates a cell and evaluates it

Short version: PasteButton will paste its contents at the input cursor. I am looking to create a similar button that will paste something into a new cell and ...
1
vote
1answer
41 views

Insert result of inline evaluation [closed]

In previous versions of Mathematica I could inline evaluate the call to Solve in the code below with the result replacing the call. Very useful to speed code up. ...
5
votes
1answer
45 views

What is the proper way of setting ` CellContext -> CellGroup` in the Wolfram Cloud Notebook?

I want a different evaluation context for different sections of my Notebook.Mike Honeychurch suggested to me than changing the CellContext to ...
6
votes
2answers
63 views

How to mix text and formulas in a single cell in the Wolfram Cloud Notebook?

How to mix text and formulas in a single cell in the Wolfram Cloud Notebook? The shortcuts Ctrl+( and Ctrl+( don't work (they probably are intercepted by the browser)
0
votes
2answers
56 views

How to keep symbol bindings local to a Notebook section?

I'm using the Notebook on Wolfram-Cloud as a ... well ... notebook to keep notes about the topic I'm studying and to answer exercises. I usually keep one notebook file per chapter, with course notes ...
0
votes
1answer
50 views

Retrieving a list of tagged output cells and a list of variables from various Notebooks into a new Notebook

The table below provides the information needed to formulate my question: how can I gather a selected number of tagged output cells and variables in a new notebook? I have two notebooks ...
5
votes
1answer
68 views

Display full details of objects in notebook

Evaluating cells such as ...
2
votes
1answer
30 views

Grid with data vertically aligned on the decimal point are not properly displayed in the Wolfram Cloud Notebook?

I can't align colum data on the decimal point: ...
0
votes
0answers
62 views

Obtaining the results of tagged cells in a notebook from another notebook

My objective is to read the results of several tagged cells in a notebook NB1 from another notebook NB2. Following the ...
0
votes
1answer
53 views

Retrieving the evaluation result of an Initialization Cell in a notebook `nb1` from another notebook `nb2`

I have a very long code in a notebook nb1 in which all the initialization cells are tagged. I have another notebook nb2 where I ...
3
votes
0answers
47 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
46 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
114 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
89 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
296 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
27 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
36 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?
0
votes
0answers
23 views

How to set the font size and back ground colour of the editor in Mathematica permanently [duplicate]

Every time when I choose a new untitled notebook I have to manually go to format and set size, background color and face of the text. How to make these changes permanently so that whenever I open a ...
2
votes
0answers
45 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
65 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
79 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
87 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
50 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
62 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
74 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
70 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
96 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
63 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,...

1
2 3 4 5
20