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
36 views

How to point to a specific location in a notebook?

I am writing a very long code and I need to refer to some line of codes in comments to clarify the definitions. Is there any way that I can refer to a line in a Notebook or create a hyperlink to take ...
5
votes
2answers
49 views

How to find a list of related functions as mentioned in the documentation center?

How can I list functions related to a specific function in a notebook without opening the documentation center? Sometimes I think I have the right function and have trouble remembering similar ...
1
vote
0answers
14 views

Same displayed expressions but different outputs. Any low level (RowBoxes) limitation?

I know EngineeringForm is a wrapper which prevents evaluation of content, but pasting chunks of other cells with an EngineeringForm number, got these two simple expressions w/ the same input ...
5
votes
0answers
83 views

"Ungroup Cells" broken in 12.3 (Confirmed by WR ... it's a bug)

** Edit: Just got off the phone with WR. Only one other person called in about this bug (although they did call in 3 times). Looks like it won't be fixed anytime soon unless they get more requests ...
0
votes
0answers
33 views

Why do notebooks created from terminal break on opening next time?

Background:: I am running Mathematica on macOS Catalina. I have a workflow where I heavily depend on the terminal to create directories, sub-directories and navigate through them. In each of these ...
1
vote
0answers
39 views

How can I import datasets from TensorFlow datasets into mathematica?

TensorFlow datasets are available at https://www.tensorflow.org/datasets. I wonder if there's a way to directly import any of those datasets directly into Mathematica 12. I tried ...
2
votes
0answers
35 views

How to link to specific cells in annother notebook with the new hyperlink UI?

Since updating to Mathematica 12.2, I find that I can no longer create links to cells in another Mathematica notebook. Formerly, the "Insert Hyperlink" command gave you the chance to select ...
2
votes
0answers
105 views

How to customize the startup page for Mathematica

I am wondering if there is a way to customize the startup page for Mathematica: . I am aware that if this is possible it will involve modifying the program files for Mathematica in the back end. Where ...
4
votes
2answers
148 views

How to programmatically change CellStyle of all Cells from "Input" to "Code"?

I have a special notebook styled for only creating functions and their packages. I often lazily do Evaluate Notebook instead of finding and opening all cells I need ...
0
votes
0answers
32 views

Loss of Mouse Function and Notebook Control in Vers. 12.3

Since upgrading to Windows 11, Ver. 12.3 seems to be performing oddly on my machine and wonder if others are experiencing unexpected problems. In trying to follow along on a WRI channel video (...
12
votes
2answers
1k views

Anti-cheating elements in a Mathematica notebook

Is there a way to check if two notebook files have the same source or they were shared by two users. I send pre-filled notebooks to my students to get into Wolfram Mathematica. However is very easy ...
0
votes
0answers
50 views

how to run multiple notebook at the same time using multiple kernels

My problem is that the second notebook file opens but waits for the first notebook to be evaluated. I want to execute both file1.nb and file2.nb at the same time. Here is my code. any idea? ...
2
votes
0answers
33 views

How to automatically name a Wolfram Notebook after the first title line of code if present?

I have a goal of somehow using Wolfram Mathematica's Notebook object functionality to program an initialization cell that will automatically save and name a new file after a title line of code ...
1
vote
0answers
47 views

How to use only real values in a notebook?

I am wondering how to make Mathematica only evaluate real numbers by creating an initialization line in the beginning of a notebook. I would like to prevent the following: complex trigonometric ...
7
votes
0answers
162 views

How to format notebook like ACL Papers?

I typically use the ICML or ACL paper format in latex which is two-columns (shown below). Is there anyway to get a two column stylesheet that looks similar?
3
votes
1answer
108 views

Old style ASCII input without Ctrl

This is an example from an old book: "The Mma book 5th ed". It was called "Entering 2D input". If I paste the following in a notebook: ...
1
vote
1answer
86 views

Expression cannot begin with "$\sum_{j=0}^{\floor*\frac{a}{b}} j$"

This is my first time using Wolfram Mathematica and writing in TeX. I'm on the free trial version of Mathematica, and I'm writing in a notebook, using the "Inline TeX Input" option on the &...
0
votes
1answer
39 views

Evaluation self notebook with loop

I have a large notebook with multiple sections. I would like to run the entire notebook with one variable change kquads. At the end of the notebook, I added one loop ...
1
vote
1answer
71 views

Single-press TemplateBox deletion

One of the handy things about TemplateBox is that it can be used to define an alias for a more "natural symbol" (by having an empty list first argument ...
6
votes
1answer
291 views

A way to contract input in Mathematica

If I input a giant matrix in Mathematica, and it is contained in a cell, is there a way to contract it so that it uses up significantly less space in the notebook?
0
votes
1answer
62 views

I have a problem when i try to open my Mathematica fille [closed]

When I try to open my Mathematica file I find a problem: There was a syntax error in the file being read. Do you want to open it as plain text? A syntax error indicates that the file has become ...
1
vote
0answers
20 views

Link lifetime of data to notebook cell

I am looking for a way to attach some data to an arbitrary cell, with the following requirements: Given the CellObject for the cell, I can retrieve the data The ...
3
votes
2answers
68 views

Evaluation time for each evaluated cell (as a whole)

I have a Mathematica notebook that has a number of cells, and each cell has a number of code lines. Sometimes it takes long hours to finish evaluating each cell and I want to compare their evaluation ...
1
vote
0answers
34 views

"Show Stack Trace" option always missing from error context menu

According to the Wolfram Language documentation, there should be an option in the context menu to see the stack trace: But I never see that option in my context menus: Is there a specific global ...
2
votes
1answer
58 views

No container is selectable when creating Wolfram notebook in Wolfram Workbench

I wanted to create a Wolfram notebook using Wolfram workbench and I must select a container in the first step but nothing is shown to select. I was wondering if anyone can explain what is a container ...
4
votes
0answers
47 views

Function for identifying wasteful cells (e.g. needless large graphics) - does this exist already?

I noticed that I have a bad habit of saving notebooks with huge graphics in them and it's starting to impact storage and load times a little much. I figured I could make a routine to point out the few ...
0
votes
0answers
21 views

Messages no longer appearing beneath code [duplicate]

At some point after I updated to 12.3.1 I started noticing that messages stopped appearing beneath the code. So for example, I used to be able to do 1/0 and I'd see ...
2
votes
0answers
81 views

How to distinguish between several instances of Mathematica?

Say, I have three opened notebooks Untitled-1, Untitled-2, Untitled-3 in first instance of Mathematica and three notebooks Untitled-1, Untitled-2, Untitled-3 in second instance of Mathematica. How do ...
0
votes
0answers
30 views

Move cell brackets on the left of a notebook [duplicate]

Is there a way to put cell brackets on the left of a current notebook? In order to visualize better a notebook structure. An image is added to illustrate the point.
0
votes
0answers
103 views

Mathematica menu-bar disappeared!

The menu bar at the top of Mathematica notebook disappeared (don't remember which key I pressed). How can this be fixed?
0
votes
0answers
53 views

view linebreak symbol

As you see in the above example, In[294] and In[295] looks just the same, but the outputs are different. The fact is that there is no linebreak symbol in In[294], but there is one linebreak symbol in ...
0
votes
0answers
79 views

Incorrect precedence when saving notebook as Wolfram language package

I want to save a notebook as a Wolfram language package. When I use the menu command File>Save As and choose ".wl" then the resulting package contains ...
0
votes
0answers
35 views

A standalone notebook that just shows a Manipulate and hides all other code?

I have a complex notebook with one cell that contains a bunch of initial definitions, several modules, and finally a Manipulate object. For a simple example take ...
0
votes
1answer
66 views

Create an interactive list in a Wolfram notebook that choosing its items make a change in calculations

I have 3 variables. I want to create an interactive list of items in a Wolfram notebook that if I choose each item, functions that are written by myself change the value of the variables and ...
0
votes
2answers
69 views

Link to Mathematica Help in a text cell [duplicate]

In a text cell e.g. The Mathematica built-in command to use is Solve..... I'd like to insert a link on the word Solve, not to the external URL of Wolfram Documentation Center, but to internal ...
5
votes
1answer
181 views

Formatting Mathematica Input

As an example, I am using code from the link below. https://reference.wolfram.com/language/ref/ContourPlot3D.html Usually such code has no line breaks and expands to fill the available width. Please ...
0
votes
0answers
34 views

Disable copying In[n] or Out[n] when clicking on it in a notebook

When I left-click on something like In[1] in the margin of a notebook (as appears when running a Cell) it automatically gets copied to the clipboard so that if I ...
7
votes
1answer
227 views

Invisible _ in documentation with Mathematica 12.3.1?

I'm using Mathematica 12.3.1 on Windows. Most or not all pages do not show the Underscore character with Patterns. Is this only on my laptop? e.g. Documentation ref/DirectedEdge or ref/Cases When I ...
3
votes
0answers
36 views

Trigger immediate update of (Inherited?) stylesheet to notebook [duplicate]

I’ve noticed that when I make changes to a notebook’s stylesheet, whether it’s manually or programmatically, often the changes are not applied immediately to the notebook. Usually all it takes is ...
0
votes
0answers
47 views

How Do I Refresh A Notebook?

I am hard at work on a lengthy and complicated notebook. Couple of days ago I pulled down on the evaluation menu. I should have selected 'Evaluate Notebook'. Unfortunately, by mistake I left clicked ...
2
votes
1answer
42 views

CellPrint with grouping the original generating code

I'm creating a large number of cells within a document programmatically, for example: ...
0
votes
1answer
60 views

Setting automatic dividers when merging groups

Imagine I have my code split into multiple sections, like so Suppose I now select all cells and merge them, getting Is it possible to automatic set a divider between the different code sections? I'm ...
1
vote
1answer
51 views

Deleting all outputs on Notebook close

Is is possible to set up a Mathematica notebook so that all outputs are automatically deleted when the notebook is closed? I was trying to look for some function like ...
5
votes
1answer
82 views

Locking cell groups

Imagine I have a notebook divided into multiple groups of code cells which are set as initialization groups. I then have a single cell which evaluates a function ...
1
vote
0answers
33 views

In my stylesheet how to change number color to red?

I would like to have a notebook stylesheet which colors any number e.g., {1,2,{3}} red. I tried Preferences ,Appearance, LocalVariables etc.but there numbers stay black. How can I change my stylesheet?...
1
vote
0answers
36 views

Why is my autoSave function not working?

This is not asking how to set up a timed recurring autoSave so please do not flag as already answered. The following should work but it doesn't and I cannot figure out why. While running this I made ...
5
votes
1answer
164 views

How to merge multiple .nb files into one notebook in mathematica

I have 10 different notebook files which I want to combine into a single .nb file. I know I can copy-paste all the cells of those 10 files to a new notebook window and then save it as nb. I can do so ...
5
votes
1answer
52 views

Show group opener on Notebook startup

When I re-open a previously saved notebook in which a group of cells is expanded, the group opener sign does not appear. See, for example However when I collapse using the right-side group tracks and ...
1
vote
1answer
50 views

Incorrect Notebook Name from Notebooks[]

I wanted to check if a notebook was open and warn the user before copying the file to a repository. This isn't the exact code, but it demonstrates the issue: ...
6
votes
0answers
200 views

Possible bug in 12.3: NotebookDirectory[] returns not the notebook's own directory, but that of an also opened copy of that notebook

I am using Windows 10 and found a bug concerning NotebookDirectory (and also NotebookInformation) in 12.3. It can be easily reproduced. Create a new notebook and save it as ...

1
2 3 4 5
23