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
1 vote
3 answers
138 views

Converting Wolfram Language Scripts (.wls) into PDFs

I have just discovered the free (as in free beer) Wolfram Engine, coming with a generous licence. After playing with Mathematica for a while, and missing the notebook feature, I would like to generate ...
antonio's user avatar
  • 111
3 votes
1 answer
59 views

Listing most recently modified sections in Notebook?

I'd like to get a clickable list of all "Sections" that have been recently modified in my notebook, grouped by day of modification. "Modified" Section means, some cell under that ...
Yaroslav Bulatov's user avatar
2 votes
1 answer
58 views

Export Notebook as Text (in 13.3 &14)

What is the best way to export a notebook as readable plaintext - while preserving as much structure as possible? The motivation here is the need to bulk-ingest notebooks and chunk them (for use in ...
user5601's user avatar
  • 3,621
5 votes
1 answer
170 views

How to write code to close the current open Notebook document after 10 seconds?

How to write code to close the current open Notebook document after 10 seconds? SessionSubmit[ScheduledTask[NotebookClose[], Quantity[10, "Seconds"]]] I ...
Hoony's user avatar
  • 1,532
0 votes
0 answers
45 views

Automating the process of restarting mathematica (and all open notebooks) after the operating system updates

The hassle of restarting Mathematica by hand after a required operating system restart makes it tempting to repeatedly delay operating system updates, which is a security risk. Has anyone written ...
J Tyson's user avatar
  • 113
4 votes
2 answers
88 views

How to find large cells in a Mathematica notebook?

I occasionally end up with a notebook that is excessively slow in the front-end because of its size. Often it's some animation. How can I use Mathematica to find the large cell responsible for this? ...
Yaroslav Bulatov's user avatar
2 votes
1 answer
91 views

How to write mixed fraction in text cell?

I could not find any especial typesetting for mixed fractions in Pallets. In text cell, when I put fraction $\frac{1}{2}$ and after put $5%$ in front of it it automatically becomes $5 * \frac{1}{2}$. ...
vasili111's user avatar
  • 1,163
2 votes
2 answers
111 views

What's the difference between chat-enabled and chat-driven?

I opened one of each and they seem identical to me.
David's user avatar
  • 137
2 votes
1 answer
93 views

How to write code realizing this manual operation? [closed]

I want to use the output of N[E,15]. However the output is really 2.71828182845904523533978449066641588615`15. if you copy the ...
amon xu's user avatar
  • 31
3 votes
0 answers
66 views

How to add wolfram mathematica notebook on github? [duplicate]

I am setting up a GitHub repository with the notebooks I created during my master's project. Among them, some are from Mathematica. Is there a better way to upload the files? Because the way I ...
User8563's user avatar
3 votes
0 answers
36 views

What's the effect of SyntaxForm option in StandardForm boxes of Superscript?

Consider the following sample: ...
xzczd's user avatar
  • 63.9k
0 votes
0 answers
30 views

Defining cell background colours by default [duplicate]

Is there a way to define the background colour of new cells by default, so that whenever I create a new cell in a Mathematica notebook, it is automatically shaded accordingly?
sam wolfe's user avatar
  • 4,179
7 votes
1 answer
341 views

Mathematica setting that shows the notebook FPS in the titlebar

There is a setting/preference that allows displaying the current frames per second (FPS) in the title bar. What setting is that?
lineage's user avatar
  • 1,114
0 votes
1 answer
63 views

Is it possible to programatically create new notebook without the default top Toolbar (the one introduced in 13.1)?

I know how this can be hide using via the UI. But is there a way to create a New Notebook using CreateDocument[{}] that does not contain the toolbar?
JuanG970's user avatar
  • 456
0 votes
0 answers
25 views

InitializationCellEvaluation does not work

I have a notebook with a single cell that I want to start running when I launch open the notebook. I have, formatted the cell as an initialization cell In the Options Inspector, Selected "...
Peter Fisher's user avatar
2 votes
2 answers
105 views

Avoid context mark in Plot labels in package

Minimal example: ...
LittleCat1's user avatar
6 votes
2 answers
835 views

In Mathematica 13.3 are chat notebooks enabled by default?

I read that Mathematica 13.3 supports chat notebooks. I have installed Mathematica 13.3 but do not see a way to create chat-enabled notebooks. Do I need to enable it? If it is enabled by default, on ...
vasili111's user avatar
  • 1,163
1 vote
0 answers
92 views

Chat block divider in a Chat-Enabled Notebook using Swedish keyboard

(I'm using Mathematica 13.3.0 on a Linux Ubuntu 20.04.6 LTS, using a Swedish keyboard.) In a Chat-Enabled Notebook, the "~" (the tilde character) is used to create a Chat block divider/...
hakank's user avatar
  • 111
6 votes
1 answer
287 views

Error when creating Chat Enabled Notebook

I loaded the new MMA 13.3 and tried following https://writings.stephenwolfram.com/2023/06/llm-tech-and-a-lot-more-version-13-3-of-wolfram-language-and-mathematica/ The website states "The most ...
Moo's user avatar
  • 3,044
9 votes
2 answers
485 views

How can a Chat-Enabled Notebook be set up to automatically use Wolfram Language Evaluator?

In the release blog post for v13.3 Stephen Wolfram gives the following example for a Chat-Enabled Notebook. As it appears there is automatic evaluation, e.g., <...
gwr's user avatar
  • 13k
1 vote
1 answer
89 views

In a Notebook, How can I set every cell to be an Initialization cell?

At present, I do this by manually setting every cell in a notebook to be Initialization cell. There must be a better way! When I finish work one day and re-open the notebook the next day, I want all ...
Peter R's user avatar
  • 21
0 votes
0 answers
40 views

Dynamic of the content of a certain cell (using NotebookRead)

Initial state : ...
imida k's user avatar
  • 4,047
0 votes
0 answers
41 views

Palette that gets single keystroke as input

I could find many examples of user-made Palette with many buttons in it. And drawing-tools Palette is not user-made, but it accepts a single keystroke as input. (In ...
imida k's user avatar
  • 4,047
6 votes
1 answer
185 views

Implementation of rainbow style for multiple cells in a notebook

We are aware that a user may utilize 'ColorFunction' gradients such as 'Rainbow' for plotting. How can we implement a gradient style as a rainbow spectrum to multiple cells in which there are multiple ...
monfneg's user avatar
  • 541
3 votes
1 answer
57 views

Insert a cell to "push" an output cell down so that my next output will not overwrite the last output [duplicate]

Normally when you evaluate a function, its result overwrites previous results. I would like to insert a cell between my function so and the last output (push down the last result} so that the new ...
George Wolfe's user avatar
  • 5,432
2 votes
1 answer
104 views

Remove output cells when committing to GitHub

When committing Mathematica notebooks to GitHub, is there a way to automatically remove output cells (as some "filter")? I know that for Jupyter notebooks, there is a Python package ...
Zhengyuan Yue's user avatar
1 vote
1 answer
70 views

Wolfram notebook Dynamic not updating in wolfram cloud

I have this very simple program: ...
user3447795's user avatar
0 votes
1 answer
87 views

Problem re-activating an old notebook [duplicate]

I have used many notebooks. I know how to select function and variable definitions I want to use in future (new) notebooks. How do I then set them up to be an Initialisation for new notebooks?
Peter R's user avatar
  • 21
3 votes
1 answer
317 views

How to import a variable from one notebook to another notebook?

I am a new user of Mathematica. I want to import a variable from notebook-1 to notebook-2 where I am currently using. I have searched for Mathematica repository but unfortunately I could not find an ...
Akbar Samiev's user avatar
1 vote
2 answers
87 views

Save animation for Animator

I have a notebook with a dynamic ParametricPlot and wanted to save it as an animation, but nothing seems to work. I tried with other local objects (A2) but somehow ...
Xan-Kun Clark-Davis's user avatar
4 votes
1 answer
107 views

Notebook magnification - two independent values

It seems there are two independent, equally influential values those control mathematica notebook magnification. Just like volume bars in a certain media player(program) and volume bar in tray bar(...
imida k's user avatar
  • 4,047
2 votes
0 answers
93 views

Creating a size changing image in output cell

In the following video, there are Image 1 and Image 2. The image size of Image 1 changes ...
imida k's user avatar
  • 4,047
1 vote
1 answer
54 views

How to completely control the displayed title of a window?

I can't quite seem to find a way to accomplish this task. I want to display an image in its own window with a custom title. This code almost accomplishes the task: ...
Glenn Welch's user avatar
1 vote
0 answers
87 views

How get this kind of group opener?

Some notebooks of mine have Section (and Subsection) cells formatted like the following, so that clicking on the icon to the right of the Section's title opens the entire group of cells in that ...
murray's user avatar
  • 11.8k
1 vote
0 answers
74 views

Notebook contents replaced with Null

I opened a notebook that I had recently made only to discover that all cells except the first one (an initialization cell) have been removed and all titles/subtitles except the first one have been ...
Gert's user avatar
  • 1,470
6 votes
1 answer
146 views

Distinguish three fraction forms (feature stronger than Hold)

This question can not be typed easily, using mathematica stackexchange interface. So here is a GIF file : My question is : Can we construct a function f whose ...
imida k's user avatar
  • 4,047
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, ...
Gert's user avatar
  • 1,470
1 vote
1 answer
178 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: ...
vasili111's user avatar
  • 1,163
4 votes
1 answer
229 views

What is the difference between code cell and input cell?

What is the difference between code cell and input cell?
vasili111's user avatar
  • 1,163
0 votes
0 answers
38 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 ...
atapaka's user avatar
  • 3,733
0 votes
1 answer
73 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: ...
Craig Carter's user avatar
  • 3,968
0 votes
0 answers
26 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 ...
Hugh's user avatar
  • 16.1k
4 votes
1 answer
122 views

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

consider the following list of Cell[]'s: ...
podge cassidy's user avatar
0 votes
0 answers
38 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 ...
Jerome Beckett's user avatar
2 votes
0 answers
68 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 ...
Jim Marks's user avatar
  • 187
4 votes
1 answer
147 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 ...
sam wolfe's user avatar
  • 4,179
0 votes
1 answer
137 views

Why does font weight sometimes lighten in certain Input cells? [closed]

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 ...
Jules Manson's user avatar
  • 2,407
1 vote
1 answer
212 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 ...
Jules Manson's user avatar
  • 2,407
2 votes
1 answer
161 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 ...
Shredderroy's user avatar
  • 5,117
2 votes
2 answers
193 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 ...
Jules Manson's user avatar
  • 2,407

1
2 3 4 5
26