As of May 31, 2023, we have updated our Code of Conduct.

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.

231 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
53 views

How to programmatically save tagged cells from currently open notebook (nb ext) as a package file (m ext)?

Please do not tag this question as already answered because the method described at Is there a way to programmatically do a “save as ” on an init.nb file to save it as init.m? is only for saving ...
Jules Manson's user avatar
  • 2,347
3 votes
0 answers
58 views

Pasting multiline commands

If i copy and paste something from one nb to another it works normally. But if I copy from any other app it just puts everything in the same line. Recently, I have automated my workflow in ...
GalZoidberg's user avatar
3 votes
0 answers
103 views

MMA 12.2 freezes while closing notebooks with many plots

I recently upgraded to 12.2 and revisited some notebooks made last year (presumably in 12.0 or 12.1). It quite often happens for big notebooks (typically larger than or around 200MB) that MMA 12.2 ...
xiaohuamao's user avatar
  • 4,594
3 votes
0 answers
77 views

With notebook's default context set to "Unique to each cell group", how do I make "Evaluate in Place" work in a text cell?

With the notebook's default context set to "Unique to each cell group", I have: x=1 The value of x = x where the second line is a text cell with an ...
Mark Mitchell's user avatar
3 votes
0 answers
75 views

linking to a cell in a Notebook from an outside program

In MS OneNote I can link to a Paragraph, so that when I open that link from an external program (like Windows Explorer), it'll tell OneNote to open itself and then open that Paragraph. I simply right-...
David's user avatar
  • 31
3 votes
0 answers
42 views

Importing notebooks with definitions that cause messages during formatting

According to reference pages, Quiet "does not quiet messages that occur during formatting", which typically is just a nuisance, but it seems to affect ...
alancalvitti's user avatar
3 votes
0 answers
217 views

using NotebookOpen with the Wolfram Engine

I try to use NotebookOpen with the Wolfram Engine. As far as I know Wolfram Engine does not include the notebook interface, but it does include the FrontEnd ...
Wizard's user avatar
  • 2,700
3 votes
0 answers
111 views

How to use the old kernel in a newer version of MMa

I am used to the conveniences of MMA 11.3 such as: can undo some times, autocomplete codes, and so on, however I have to run some functions in the version 5.2. So I installed Mathematica V11.3 and V5....
likehust's user avatar
  • 663
3 votes
0 answers
56 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 ...
halirutan's user avatar
  • 112k
3 votes
1 answer
81 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 ...
grading's user avatar
  • 251
3 votes
0 answers
93 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 ...
Alexey Popkov's user avatar
3 votes
0 answers
60 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 ...
Alan's user avatar
  • 13.1k
3 votes
0 answers
80 views

Recommended Notebook and Cell Options for Deployed GUIs

I often use CreateNotebook to enclose GUIs that open in a Deployed, non Saveable and non <...
Ariel Sepulveda's user avatar
3 votes
0 answers
91 views

Inputfields with FieldCompletionFunction keeps list active in previous field

I would like to have three inputfields with each their own fieldcompletion list in a row. After choosing an item in the first inputfield (with arrow down followed by an Enter) I want to go to the next ...
Lou's user avatar
  • 3,740
3 votes
0 answers
146 views

Get context from notebook

The function Context[] returns the context of the Notebook the function is called in. Is there a function where we can specify e.g a Notebook object and retrieve ...
Lou's user avatar
  • 3,740
3 votes
0 answers
71 views

Annoying notebook scrolling on Ubuntu

I hope this is the right place for my question. I've been struggling with annoying scrolling with my Mathematica 11.0 on Ubuntu 17.04.. It is sluggish and clicky, on Windows it works fine instead. ...
yeahyeah's user avatar
  • 175
3 votes
0 answers
92 views

Understanding the difference between EvaluationNotebook and ButtonNotebook (and their FrontEnd` versions)

The Documentation for ButtonNotebook says: ButtonNotebook[] gives the notebook, if any, that contains the button which ...
Alexey Popkov's user avatar
3 votes
0 answers
163 views

Can I automatically set "Editable" to False for read-only notebooks?

I know that notebooks have an "Editable" option that is accessible via the option inspector or by calling, say, ...
masterxilo's user avatar
  • 5,679
3 votes
0 answers
100 views

What is the Kernel waiting for after DialogInput is launched?

Bug introduced in 11.0 or earlier and persisting through 11.2 [...] I was able to reproduce the issue, and consequently, I filed a report with our development team [...] CASE:3805351 I find this ...
Kuba's user avatar
  • 135k
3 votes
0 answers
107 views

How to place window on second screen?

I am trying to open a window on a second screen (a thunderbolt display attached to a macbook pro) that is the full size of the second screen. Here is the command I use: ...
abwatson's user avatar
  • 1,879
3 votes
0 answers
105 views

Change the background color of matched strings when doing find-and-replace

This is not a fundamental question, but it puzzles me. In doing a Find & Replace for some string in a notebook, the matched string is highlighted temporarily with some background color (green for ...
djg's user avatar
  • 93
3 votes
0 answers
124 views

Is there a notebook to create entries for OEIS?

Is there a notebook to create entries for OEIS? I seem to recall something like this a few years ago, but I haven't been able to find one. It might be from MathWorld. Any suggestions? Edit If I had ...
Fred Daniel Kline's user avatar
2 votes
0 answers
63 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
  • 155
2 votes
0 answers
39 views

Is there any function I can use to delete the cell automatically but at the same time keep the evaluated results

For, example, in the following code ...
Lawrence's user avatar
2 votes
0 answers
84 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 ...
bhopshang's user avatar
  • 685
2 votes
0 answers
75 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 ...
samlingra's user avatar
2 votes
0 answers
45 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 ...
Peter Burbery's user avatar
2 votes
0 answers
84 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 ...
azerbajdzan's user avatar
  • 5,935
2 votes
0 answers
71 views

Equations in text cell in wrong format

In order to type an equation in a text cell one presses Ctrl+9 and then you get a highlighted region into which you type an equation. Here is an example The problem here is that the equation is in ...
Hugh's user avatar
  • 15.7k
2 votes
0 answers
62 views

What are key differences between InputNotebook and EvaluationNotebook?

I am still new to Mathematica but advancing to a point of programming notebook and cell manipulations using native commands. Sometimes they call for specifying ...
Jules Manson's user avatar
  • 2,347
2 votes
0 answers
54 views

Suggest allowing new color brackets

By now I have spent a bit of effort in writing Mathematica notebook for my analysis tasks and appreciate the power of the Mathematica language. At the same time, I also discover that a significant ...
Z Ming Ma's user avatar
  • 477
2 votes
0 answers
92 views

Issue with calling one notebook from inside another one

I am calling one notebook (N2) from inside another notebook (N1). The results are transferred correctly from the second notebook to the first one. But when I try to compare the results from the two ...
Mehdi Ebadi's user avatar
2 votes
0 answers
57 views

Can Mathematica be set to remind user to save after a set number of unsaved edits have occurred or after a set amount of time has passed?

I lost half a night's work just now because after about 6 months of learning and working with Mathematica it finally decided to crash on me for the very first time. Yeah my bad. At least I can ...
Jules Manson's user avatar
  • 2,347
2 votes
0 answers
61 views

Who Defines Symbol \$MySource

When I start up a fresh executing Mathematica on my MacOS system and I open a Notebook file there is always one symbol defined in the Global context. This symbol is \$MySource and it points (via a ...
K7PEH's user avatar
  • 609
2 votes
0 answers
58 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 ...
Roger Dooley's user avatar
2 votes
0 answers
72 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, ...
Ruslan's user avatar
  • 7,082
2 votes
0 answers
49 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 ...
Alan's user avatar
  • 13.1k
2 votes
0 answers
194 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 ...
reemodels's user avatar
  • 441
2 votes
0 answers
99 views

Sequentially displaying bullet comments in a Mathematica presentation

Playing around with the 11.3 presenter tools today. I have generated a presentation entitled "Polynomials". 10 slides with Title and 9 sections. My goal was to create a presentation with 5 slides. ...
JEM's user avatar
  • 1,147
2 votes
0 answers
103 views

Long output fade-out effect?

Is there a method to truncate & fade out output expressions programmatically, essentially the same effect as seen (arrow) in this screenshot from 11.3 presentation: I asked tech support but was ...
alancalvitti's user avatar
2 votes
0 answers
1k views

How to upload a notebook to the Wolfram Cloud using Android app?

I am using the Wolfram Cloud app on Android and have received an email with a notebook attached. Using the Wolfram Cloud app I would like to load the notebook to work in it. I can save the notebook to ...
Edmund's user avatar
  • 40.9k
2 votes
0 answers
107 views

Trusted notebook database: where is it

I've just moved to a new institution where the site licence comes with a custom version of mathematica 11.0.0. On my mac, I've cleaned up by removing ...
egwene sedai's user avatar
  • 2,305
2 votes
0 answers
46 views

Centering CellLabels

Is there a way to get cell labels to vertically center next to the input text? It always looks like the CellLabels are offset a bit too low:
user5601's user avatar
  • 3,657
2 votes
0 answers
69 views

Hiding '//*Form' in output cell labels?

Is there a way to hide the '//form' part of Output cell labels but keep the Input cell labels the same? For example, I'd like to keep "In[2]:=" but get rid of the "TreeForm=" here:
user5601's user avatar
  • 3,657
2 votes
0 answers
40 views

Do celltags have to be strings?

The Wolfram Documentation Center states that CellTags are "usually strings". I'm confused on what "usually" means. Is it possible to create one that uses boxes? For example, can I create a celltag ...
B flat's user avatar
  • 5,377
2 votes
0 answers
117 views

Dynamic WindowSize cooperation with resize area

According to 116030: Front end options, which includes all box options, can take Dynamic heads. That basically means that the FE will compute the value of the ...
Kuba's user avatar
  • 135k
2 votes
0 answers
185 views

How to expand and collapse multiple cells inside a frame while keeping all in a single frame

I am trying to create a framed cell around cells that collapse and expand. Mr. Wizard's answer below almost does it, however, when the cells are collapsed I lose the lower frame border. I'd like to ...
B flat's user avatar
  • 5,377
2 votes
0 answers
118 views

How to convert a notebook to an association and back?

I have a notebook that serves as a nice readable document but is it a database of sorts, I'd like to transform this into an association so I can manipulate and export it as a dataset. Here is a sample ...
M.R.'s user avatar
  • 30.9k
2 votes
0 answers
121 views

How can I apply NotebookGet on invisible Notebooks?

My problem might be very specific, but can be quickly explained: First I create an invisible notebook nb by CreateDocument, then i apply NotebookGet on it to see its content, wich works fine! Now I ...
sacratus's user avatar
  • 1,556
2 votes
0 answers
94 views

Sending a command to an already opened frontend

I'm trying to pipe low-level notebook commands to work through terminal and I've tried various ways, but I can't really get to the frontend that's already open. For example Opening a notebook from ...
Ranza's user avatar
  • 1,175