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
0 answers
21 views

Prepare notebook for students [duplicate]

I'm preparing a notebook with some code for students to evaluate. I always check all the code myself while I make this notebook, and afterwards, I evaluate everything again to double-check. Of course, ...
  • 1,216
0 votes
1 answer
51 views

Error when trying to do TeX input with ImportString[]

I got this information from here (Last line of the details section): https://reference.wolfram.com/language/ref/menuitem/InlineTeXInput.html My code: ...
  • 1,057
3 votes
1 answer
109 views

What is the difference between code cell and input cell?

What is the difference between code cell and input cell?
  • 1,057
0 votes
0 answers
31 views

How does cell style work with cell form?

I am writing some text in Mathematica that includes equations. I have an option for equation box by entering ctrl+( but it seems that is designed for inline math ...
  • 3,396
0 votes
1 answer
39 views

How to write Boxes to a notebook with NotebookWrite?

I would like to write Boxes to a Cell to a notebook (e.g., FractionBox, SuperscriptBox, etc). Here is what I've tried: ...
  • 3,140
0 votes
0 answers
20 views

Save and minimise a notebook

When working on a project I often have useful modules in another notebook. I like to compile these modules and then leave them available for modifications and new modules. Here is the code I use ...
  • 15.6k
4 votes
1 answer
105 views

How to programmatically create a notebook from a list of Input Cell[]'s with syntax highlighting?

consider the following list of Cell[]'s: ...
0 votes
0 answers
15 views

NotebookImport refuses to import simple notebook on Wolfram Cloud due to InterpretationFailure

I've been trying to convert one of my notebooks to text on Wolfram Cloud via the use of NotebookImport but unfortunately it just seems to flat-out not work and I ...
2 votes
0 answers
60 views

Copy/Paste MMA code from PDF into Notebook garbles special characters

I have a PDF which contains Mathematica code and plain text. It was probably generated directly from one or more Notebooks. I am running MMA 13.1 on Ubuntu, and when I copy/paste any of the plain text ...
  • 155
4 votes
1 answer
136 views

Why does `MemoryInUse` keep increasing?

Consider MemoryInUse. After kernel initiation, I have noticed that its value keeps increasing, even when not evaluating any cell, as seen ...
  • 4,362
0 votes
1 answer
77 views

Why does font weight sometimes lighten in certain Input cells?

Why do font weights sometimes change in cells, where they evolve from a regular weight to a dimmer or lighter font weight? The notebook I have open is not heavy as it only has a few cells. Also, there ...
  • 2,337
1 vote
1 answer
83 views

How to check that a user-input of a list of CellObject-s actually belong to the EvaluationNotebook?

Suppose a user inputs a list of CellObject-s to operate on. How might one check these objects to determine if they actually belong to the ...
  • 2,337
1 vote
1 answer
75 views

How can I change the default cell type in Mathematica from Input to Code?

Every time I type something into a notebook, I am compelled to first change the cell type from Input to Code, and then unset the ...
  • 4,917
2 votes
2 answers
119 views

ChangeCellStyle function works in one direction but not in reverse

This post is a continuation of an earlier Question, How to programmatically change CellStyle of all Cells from "Input" to "Code"? but with a ...
  • 2,337
1 vote
1 answer
39 views

How to refer to calling notebook instead of my personal include? / detector for high-memory-usage cells

Along the lines of a couple previous posts, I coded this function to show you where in your notebook your biggest space-wasters are. Useful for when your file is becoming huge and unmanageable for ...
  • 753
1 vote
0 answers
58 views

How to acquire the background color and font color of output cells?

The following is how I grab the general colors used for an EvaluationNotebook but how does one target the colors to be used when creating an ...
  • 2,337
0 votes
0 answers
36 views

Modify notebook style through code [duplicate]

As you can see, now the "1","2","3","4","5" of this notebook are all "Code". Now I want to change them all to "Text",I can do ...
  • 1,118
3 votes
1 answer
125 views

Logging intermediate results to notebook

I would like to add the following logging functionality to a package I'm writing: For functions whose (intermediate) results could be important there should be an option to let them write these ...
  • 1,216
1 vote
1 answer
64 views

Remove background colors within cells

I've gotten in the habit of changing the background color of modified chunks of code using the Format - Background Color menu on the selected code. E.g. Now I'd ...
  • 18.9k
3 votes
0 answers
68 views

Maximum number of concurrent notebooks

I am running MMA v13.2 on Windows 10, x86. If I open two different notebooks, everything is fine. Try opening a third and it displays Of course, the operation fails because the software is already ...
  • 2,570
2 votes
1 answer
147 views

Are there repositories or organized collections of mathematica notebooks?

I was wondering if there was one place where researchers upload their mathematica notebooks used for specialized research once if they choose to make it public
0 votes
0 answers
59 views

Code to delete all output in a notebook

I am looking for a code I can paste at the beginning of a notebook to delete all the output cells so that when I execute the "Evaluate notebook" command, all the output cells are also ...
  • 135
5 votes
1 answer
204 views

Documentation Search : google-like (pokygon -> polygon)

If you search for "pokygon" in google.com, then google automatically fix error, and searches for "polygon". Like google.com, if you search for "pokygon" in mathematica (V ...
  • 3,529
1 vote
1 answer
91 views

NDSolve doesn't evaluate unless I re-evaluate the output manually

Background ** You can see my full program here. Go ahead and plug it into your notebook. You should have everything you need there. Password: OrbitCode I am working ...
1 vote
1 answer
60 views

Save/Export "any" mathematica window in .nb

Can I call this (a tutorial page) a mathematica notebook? At least it is a kind of mathematica window, which looks like a common .nb file. Is it possible to Save/Export this mathematica window in .nb ...
  • 3,529
1 vote
0 answers
52 views

Entire process of "hyperlink of paclet" to "location of real file"?

Hyperlink[AAAAA, "paclet:ref/ModularInverse"] AAAAA If I click AAAAA, then a tutorial notebook for ModularInverse.nb ...
  • 3,529
0 votes
0 answers
29 views

How to pass styles arguments to Style from a wrapper function's argument?

The user-defined symbol styx works fine for style argument values of Automatic and ...
  • 2,337
0 votes
0 answers
29 views

How do you evaluate a notebook and save updated output from another notebook?

I am trying to open a notebook and evaluate all the cells, then resave that notebook with the updated outputs. ...
3 votes
1 answer
139 views

How to get output in MatrixForm in this context?

The following code implements matrix arithmetic: ...
  • 3,337
1 vote
1 answer
51 views

Enums in ONE text cell of a notebook?

Is it possible to have an enumeration as an integral part of a text cell, so that they all together form one cell? Reason for this question: I would like to have a text cell (e.g. for a theorem) and ...
  • 257
0 votes
1 answer
78 views

How to write a string to a notebook

Apparently I'm having a problem even asking my question correctly and getting my edits to appear, so I'm asking the question once again. Hopefully it will go through and I'll get a specific answer. ...
0 votes
0 answers
96 views

Writing a line of text to an open notebook

I realize this is a simple question, but I'm relatively new to Mathematica programming. I have created a Mathematica Notebook called Index.nb which is open on the desktop in Mathematica I want to ...
1 vote
0 answers
65 views

Which Mathematica version created/saved notebook

If a notebook is opened in a version of Mathematica that is older than the version that created/saved it, an alert window is displayed stating "This notebook was created in a more recent version ...
2 votes
1 answer
153 views

How do I know which kernel is handling which .nb file? [closed]

OS : window 10 Mathematica : v12.2 By my mistake, I opened another mathematica kernel, not knowing a kernel was already running. I created a lot of .nb files and worked on them in another kernel, ...
  • 3,529
2 votes
1 answer
88 views

Why do two images of same ImageDimensions display very differently in notebook?

I've downloaded two images from the internet. They are identical sizes, yet they are displayed quite differently in the notebook. Why? Here's the example: ...
  • 2,369
0 votes
0 answers
88 views

Mouse cursor disappears( Mathematica 13.1)

I have been using Mathematica on Ubuntu for a while now. I have Ubuntu 22.04 LTS and MMA 13.1. I can't see the mouse cursor on the MMA notebook. I had the same problem with MMA 13.0. So, I updated it ...
  • 653
0 votes
0 answers
31 views

How might one create a Button that wraps everything hilghlighted with mouse with double quotes similar to Comment/Uncomment?

I find typing doublequotes around characters to create strings a bit annoying because it always slows me down. The doublequotation marks lie right at my achilles heel on keyboards. It's too close to ...
  • 2,337
10 votes
1 answer
172 views

Change the default name of a new notebook from Untitled-*?

I'd like to change the default name of a new notebook to, say, StringJoin[{RandomWord[],".nb"}]. There is a hint how one might do this in $InstallationDirectory/SystemFiles/FrontEnd/...
  • 3,140
0 votes
0 answers
32 views

Create a notebook with no menu bar

I would like to create a notebook with a specific name and no menu bar. The following code: ...
  • 5,382
10 votes
1 answer
292 views

How to convert a Markdown file into a Mathematica notebook

How to convert a Markdown file (or text) into a Mathematica notebook? For example, easy conversion of comprehensive MSE posts is desirable. Possible approaches ordered according to their convenience: ...
1 vote
1 answer
24 views

Create and copy whole cell before NotebookApply

I have created a button with a NotebookApply associated, something similar to the following ...
  • 572
11 votes
1 answer
634 views

How do I unlock a Mathematica Notebook?

I downloaded Wolfram's Intro to Mathematica in Notebook format. I like to experiment as I study but you can't edit the notebooks. They are locked for some reason. So I still have to open a work ...
0 votes
0 answers
55 views

Notebook won't save

Running Mathematica 13.0 (home edition) on macOS Monterey Version 12.5 I worked on an existing notebook this morning and saved the notebook at 11:05 AM without incident. After further work, some 20 ...
  • 14.1k
0 votes
1 answer
74 views

No vertical mouse scrolling in version 11.3

I am using Mathematica version 11.3 on Windows 10 and cannot scroll vertically through the text of a notebook using the mouse, the screen content simply is fixed. In Mathematica version 10 there is no ...
2 votes
1 answer
77 views

Any practical benefit of preserving notebook history?

Yesterday I tried to figure out why my Mathematica file reached a gigantic size of 54 MB. By deleting, it would seem, all the graphs and tables with the results of calculations, I was able to reduce ...
0 votes
0 answers
66 views

notebook converted to strange format

Somehow all code in a notebook turned into stuff like this. How can I reverse it back to normal code? ...
  • 2,283
8 votes
2 answers
245 views

Creating Picture-in-Picture functionality by Attaching a Notebook to a Notebook using AttachCell[]

I use Mathematica for math lectures at my school. I would like to find a way to attach a secondary notebook to a primary notebook using AttachCell[]. The idea is to have picture-in-picture (PIP) ...
  • 5,211
2 votes
1 answer
53 views

What properties make a valid CellID?

The documentation for CellID only mentions that it will be a number. But what kind of number? Can it be a real number with a decimal? How about a negative number?
  • 2,337
1 vote
1 answer
82 views

How can a Style Cell be safely programmatically appended to the Notebook Stylesheet at (Format -> Edit -> Stylesheet)

The purpose of this is to append a DockedCell style definition to the list of cells inside Edit Stylesheet without deleting any ...
  • 2,337
1 vote
1 answer
135 views

Cannot find DockedCells with Cells or NotebookFind

Request 1: A workaround for Cells or NotebookFind needs to be found for locating and returning the ...
  • 2,337

1
2 3 4 5
26