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
2
votes
0answers
47 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 ...
5
votes
1answer
153 views

How can I prevent Mathematica from cutting sentences in the middle when printing strings?

I have a very simple but annoying problem. Consider the following example: ...
0
votes
1answer
49 views

Change in “boldness” in 3d graphics in Mathematica 12.1.1 while rotating

After updating mathematica from version 12.0 to 12.1.1,I noticed that 3D graphics change their boldness while being rotated.Is there a way to turn this off?It becomes annoying.Below are the attached ...
0
votes
0answers
51 views

What's this strange notebook icon with a vertical line?

Does anyone know what this icon means? I've tried searching, and I've tried creating one notebook of each type. Thanks
1
vote
0answers
35 views

How to retrieve the original mathematical expressions from some sort of scripts?

I quit my Mathematica notebook session mid-computation. When I reopen it, the mathematical expression disappeared leaving something like ...
3
votes
1answer
42 views

Is there a way to construct more/deeper layer of subsection?

We know in a notebook there are Sections, Subsections and Subsubsections. I wonder is there a way to construct something like Subsubsubsection and Subsubsubsub...subsection? I ask this because when I ...
10
votes
2answers
227 views

i_:0|1 varies in v12.1: incompatible change or bug?

Just check i_: 0 | 1 // FullForm In v12.0 or earlier the output is Alternatives[Optional[Pattern[i, Blank[]], 0], 1] But in ...
0
votes
0answers
24 views

Please help validate autoSave function or refactor for better performance

I finally have my autoSave[] function that appears to work. Although it does automatically save file the DateString (dynamic in-...
0
votes
1answer
47 views

'x' occurs twice in a nested scoping construct, in a way that is likely to be an error

I am defining the following innocent looking function (which defines a linear function passing through two given points): ...
2
votes
0answers
42 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 ...
1
vote
0answers
23 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-...
0
votes
0answers
60 views

How can i change IDE color theme of Mathematica Wolfram?

I'm a new in mathematica wolfram, please help how can i change IDE colors theme's, text and background? I can't work with bright white screen? I use Mathematica 12.1. and want color theme like a ...
10
votes
0answers
186 views

How to use Mathematica in academic paper writing?

The Mathematica notebook is a great avenue for inspiring and realising research ideas. However, I do feel there are several missing jigsaws in the picture of writing academic paper fully in ...
2
votes
0answers
25 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 ...
0
votes
1answer
49 views

Are PDF Archives of Notebooks; Good Idea

Question: Is it a good practice to print PDF of your notebooks? I am starting to accumulate several NBs. They are saved in OneDrive. I have not turned off the Auto-TimeStamping feature. (Don't care ...
1
vote
1answer
48 views

Importing Lines of Code from Another Notebook

I'm trying to access lines of code from another Mathematica notebook using NotebookImport NotebookImport[FileNameJoin@{NotebookDirectory[], "QA.nb"}, _] Stuff in ...
3
votes
1answer
54 views

Matching symbols in assignments using NotebookImport

How can symbols from assignments, ie left hand side in expressions Set and SetDelayed be matched after importing using ...
2
votes
0answers
55 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 ...
0
votes
0answers
30 views

NotebookEvaluate via URL - or Google Drive format

Is there an option or other method to run EvaluateNotebook for remote notebooks, ie EvaluateNotebook[url-to-notebook] in other words evaluate remote notebooks in ...
0
votes
0answers
25 views

NotebookDirectory in NotebookEvaluate

Suppose Notebook A calls NotebookEvaluate[Notebook B]. Notebook B calls NotebookDirectory[]. Naturally, NotebookDirectory[] returns the directory of Notebook B. Is there an option to have ...
0
votes
2answers
28 views

suggestion needed for running a model in a NB1 while data is imported from NB2

I want to iteratively run a set of scenarios. There are two notebooks NB1 and NB2. The former includes the following system of 2 ...
0
votes
0answers
26 views

How to save a copy of the current notebook without opening it?

I want to save a copy of the current notebook using Mathematica code (* the notebook that's open is foo.nb *) NotebookSave[SelectedNotebook[], "bar.nb"] After ...
2
votes
0answers
40 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 ...
8
votes
1answer
71 views

obtain properly formatted code from autogenerated package

Overview: I have written a few mathematica packages, always using the method of writing my code in a mathematica notebook and letting mathematica autogenerate the .m package file. Currently I do not ...
0
votes
0answers
59 views

Is the option 'WindowTitle' working in 12.1 for Windows?

It is not possible to change to option FullFileName at WindowTitle in the window of Global Preferences (version 12.1 in Windows ...
0
votes
0answers
23 views

How do I share a Dataset using Wolfram Player?

I can Export a Dataset to a Notebook or CDF and share it with another person who only has access to Wolfram player. They can see ...
5
votes
0answers
52 views

InputField with carriage return in cloud notebooks?

I'm looking for a way of constructing a multi-line InputField in a cloud notebook. That is, a text field that supports the following five behaviors: The 'Enter' ...
5
votes
0answers
38 views

Convert a Classic Slideshow to an ordinary notebook

I have several Classic Slideshow presentations originally created 3 or 4 years ago. I would like to convert these to ordinary Mathematica notebooks, removing all the slideshow-related paraphernalia ...
5
votes
1answer
101 views

Convert between string and expression representation of boxes

Boxes may be represented as expressions or as strings. How can I convert between the two forms? In particular, how can I convert from the string representation to the expression representation? ...
15
votes
1answer
317 views

Wrong function of NotebookDirectory[] in the 12.1 version

Bug introduced in 12.1.0 Could anybody help? NotebookDirectory[] function began working wrong in 12.1 (the bug was not present in 12.0 and earlier versions). ...
3
votes
0answers
51 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....
0
votes
0answers
12 views

Reopen/recreate Notebook Object Dialog

Suppose I want to monitor a processing, I can create a dialog for monitoring the processing, but if I close the dialog window while the processing does not finish yet, what is the best way to get back ...
2
votes
1answer
44 views

“Auto-loading” a .m file

I have a .m (say e.g. file1.m) file with various definitions that gets sourced by another notebook using the command Needs["file1`"]. If file1.m is in the ~/....
2
votes
1answer
45 views

How can I create a template for Mathematica notebook with predefined initialization cell?

I have created an initialization cell with options. I would like to create a template, which already contains these cells, when I open a new notebook. Is there any opportunity to create such a ...
4
votes
2answers
76 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
59 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
50 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
1answer
48 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
32 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
19 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 ...
7
votes
1answer
104 views

Publish to Cloud with accompanying stylesheet

Is it possible to Publish to Cloud with an accompanying user-defined stylesheet? So that anyone who clicks on the link will see it with the correct stylesheet. I'm not talking about using ...
2
votes
0answers
40 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
77 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
41 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
23 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
40 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
188 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
102 views

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

Suppose we have a cell like this: ...
2
votes
1answer
55 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 ...

1
2 3 4 5
21