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.

learn more… | top users | synonyms (1)

0
votes
0answers
15 views

Do-Command around entire Notebook (by iterating it from another notebook?)

I have a large simulation (1500 lines of code in different sections) and I would like to run the file using different combinations of input parameters without manually changing the parameters. Say my ...
3
votes
1answer
23 views

How to create a window which will close in a certain amount of time?

I'm currently making a interface in Mathematica and I'll need to bump a window out and then let it close itself in a certain amount of time. Here's an short example to illustrate the effect: ...
7
votes
1answer
47 views

Multiple documentation notebooks open at the same time

Is it possible to view multiple documentation notebooks at the same time without launching multiple kernels? I'm sure it must be possible.
0
votes
1answer
32 views

Modifying a spacing of cells and background of a notebook

A simple question: How do I reduce this spacing and how to change the background? I think it is in the Options Inspector, but I cannot find the exact location to make the modification. As for the ...
1
vote
1answer
52 views

Deleting duplicate cells from notebook

I need to delete all duplicate cells in my notebook, keeping just one occurrence of each pair (or tuple). No need to choose which to keep. Is there a (simple) way to do it?
5
votes
2answers
139 views

Split screen view in notebook interface?

Is there a way to get a split screen in the notebook interface? I want a movable horizontal bar in a window with two views into the same notebook, each of which is independently scrollable. An ...
4
votes
1answer
49 views

Scroll Position for a Notebook

If you have a notebook with lot of content open you will see a scroll bar on the far right and bottom. I'm looking for a function that will return the current value of of the scroll bars. I'd also ...
7
votes
2answers
131 views

Is there a keybinding for absolute value?

Is there a keyboard shortcut or esc-sequence for typing in the absolute value bars into input cells? I know that if you do, Abs[-4] // TraditionalForm and copy ...
1
vote
1answer
62 views

Brackets of matrices don't size

I have a simple question. Switching from v9 to v10 I find that the brackets of matrices in text and input cells don't fit the size of the matrix, they are just small ordinary brackets. There must be ...
10
votes
0answers
69 views

Issue with undo after copying a string inside a string

Bug introduced in 10.0 and persisting through 10.4.1 or later Here's a small but annoying issue related to undo and copying of strings. Steps required to get the problem: Type ...
-4
votes
1answer
43 views

I want to run 5 different simulation cases over an entire Mathematica Workbook?

I want to loop over the case numbers, so run cases 1 -5 without manually changing. caseNumber = 1; Which[caseNumber == 1, dataString = "Jan", caseNumber == 2, dataString = "Feb", caseNumber == 3, ...
1
vote
0answers
45 views

Adding a link to notebook 2 in a notebook 1 [closed]

How to add a link to open a notebook2 with any name in a notebook1 I tried with Hyperlink without success.
0
votes
0answers
34 views

Inserting Mathematical evaluation in text

I just have discovered that it was possible to incorporate calculation in a cell text with hilighting the formula and typping Ctrl + Shilt + Enter. Ok, but in the particular following case the output ...
4
votes
1answer
69 views

How to preview the notebook file in a file explorer just like the preview of pdf file

I use Mathematica for daliy small program and visualization, so I have many samll notebook files. I use long file name to tag and distinguish these files, but sometimes I use short file name (maybe ...
2
votes
1answer
41 views

How to have vanishing cell bracket for all notebook

I know that it is possible to make the cell brackets appear only when the mouse is upon them but I do not know how to do that. Of course for one cell it is shown in the documentation but not for an ...
0
votes
1answer
155 views

How to automate repetitive evaluation of a notebook from a parent notebook [duplicate]

I've got a code that I want to automate, but I'm not sure how. I have a Mathematica notebook that I need to run many times over, each time changing one variable and repeating. My idea was to set up ...
1
vote
1answer
82 views

How insert hyperlink to file with relative path?

Into a text cell of my current (previously saved) notebook, I want to place a hyperlink to a particular file target.html in a particular subdirectory ...
9
votes
1answer
146 views

Collect all inputs from Documentation Center

Is it possible to collect all inputs programmatically from every function in the Documentation Center in a list and wrap them in a HoldComplete? My case: With some ...
1
vote
0answers
58 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: ...
1
vote
1answer
111 views

How to transfer a notebook with imported data to another computer?

I've been working on a notebook at home with imported data from some Excel files and plan on working on it on another computer. I have the .nb file and the .xls files, and my imported data is a ...
8
votes
1answer
279 views

How to construct a tree from a notebook?

Given the notebook itself we can think of it as a tree graph: the root vertex is the empty notebook itself, the headers of cell groups are vertices, and all other cells as leaf vertices. I'd like to ...
4
votes
2answers
301 views

How to make Mathematica save all open files, or automatically ask to save each file when closing

Here is the scenario: You have number of open notebooks at the same time, and made some changes in all or some of them but have not yet saved the changes. Mathematica does not have something like ...
3
votes
3answers
727 views

How to save all notebook outputs as pdf file

I have produced a lot of graphs and tables in my notebook. I am trying to save all these outputs as pdf file. As we know form Rodney and form Mr. Wizard , we can not use save as function. I have ...
3
votes
2answers
52 views

Find a specific function in several notebooks [duplicate]

I searched several questions in this forum about: How to search a specific function ... For example, I have a folder with several notebooks. And several of these notebooks, I used, for instance, <...
11
votes
1answer
1k views

Manipulate (Linux version of Mathematica)

I'm runnning Mathematica 9 on Ubuntu 11.10. After installing CDF player I still have problem (most of time) with Manipulate. Only way I'm able to change value of a ...
11
votes
2answers
403 views

Create new notebook at fixed size

Using Ctrl+n we are effectively doing FrontEndTokenExecute["New"] and, at least on Windows, a new window has a WindowSize equal ...
0
votes
1answer
45 views

Working with WolframCloud

I'm using WolframCloud from my smartphone and I'm having trouble to select all the cells of my notebook to delete them. There is a command that selects all the cells in a notebook? I tried using the ...
3
votes
1answer
58 views

How to wait a Cell in a Notebook to be executed until another Notebook's Cell expressions executed?

I have two Notebooks and I call the second Notebook from the main but main Notebook's expressions continue executing. I want them to wait until the second Notebook's expressions execution is finished! ...
18
votes
6answers
2k views

Annoying display truncation of numerical results

I have a lot of data to inspect. An example of a number in my program is 123.189094 This gets displayed as 123.189 ...
1
vote
1answer
89 views

Evaluation of a Notebook

I am new to Mathematica so I do apologize if my question is too elementary. In the start of my notebook, I want to make sure that any previous definitions are wiped out so I use the ...
2
votes
1answer
88 views

Referencing cells after reopening a saved notebook

I'm looking for a way to reference certain cells when opening a saved notebook. That is, assume I ran some commands in a notebook, got some output, saved the notebook, then reopened it in a new kernel ...
15
votes
0answers
130 views

Any manual on cell grouping management?

Recently I come back to the problem of cell grouping and performed extensive search on this site and on MathGroup archive for information on how to use the possible values of the ...
0
votes
0answers
32 views

The problem encounterend while calling a sub notebook from the main notebook

I have two notebooks; one of them is the main notebook which will call the second notebook several times in a loop and inside this loop, matrix called as ALLB, defined in the main notebook, will get ...
3
votes
2answers
224 views

How can I change mouse hover behavior for hyperlinks in a notebook?

When I create a Hyperlink to a Youtube video in a text cell the link is colored blue like it would be in a browser. However, the mouse cursor does not change when ...
3
votes
1answer
70 views

Can I get a list of more than fifteen of the most recent notebooks opened?

When I go to the pull-down options for “File”, one of them is “Open Recent”. It lists the last 15 notebooks opened. Is their any procedure to follow to get more (than 15) of the latest opened ...
6
votes
1answer
80 views

Testing Framework applications in the FrontEnd area

I understand that user interaction with GUI can't be tested automatically but some things can be tested using low-level notebook programming functions. Are there any guidelines or limitations of using ...
6
votes
2answers
172 views

How to group cell type A under cell type B?

My notebook's groupings for "Subsection" and "SubitemNumbered" are broken: And by broken, I mean I wanted it to automatically group like this which I did manually (with lots of control+shift+g) ...
9
votes
3answers
129 views

questions with hidden but revealable hints and answers

I would like to create a notebook with questions that have attached hints and answers. The hints and answers should be hidden, but the display should clearly indicate (e.g., with a button) that each ...
3
votes
1answer
87 views

Test whether the selection is a subexpression

I am writing a button that applies some transformation to the current selection, in a spirit similar to the question "Apply a function to the current selection in place". However, I would like to ...
1
vote
0answers
22 views

Print SlideShow

I have a notebook as SlideShow with a cell containing graphics and formatted text as a DockedCell. Now I want to print the notebook WITH the docked cell, maybe one slide per page. How could this be ...
3
votes
2answers
96 views

Locate code in a notebook

A situation of using notebooks that always puzzles me is when you want to point out a certain "code block" with your collaborators: since the notebook is not organised in a pure text format, the code ...
0
votes
1answer
57 views

How to modify a file opened by NotebookOpen [closed]

I need to run a file several times, each time with a different value for a certain variable. I use the following script to automate the process, but I have no idea how to make changes in the file ...
7
votes
2answers
98 views

How to open and explore the codes of the system Palettes files

The built in Palettes of Mathematica are simply .nb files which can be found in the following place: ...
40
votes
4answers
6k views

Saving data inside a notebook so that I don't have to run it again?

Piggybacking on this, I am somehow not fully convinced that I can't save data generated by a calculation in a mathematica file so that when I re-launch said file, I wouldn't have to run my ...
5
votes
1answer
95 views

How to get “one Cell - one line” code format inside of NB files?

The PageWidth option controls the way the Cell's content is displayed, not the manner it's written in a ...
1
vote
0answers
42 views

Stop front-end from auto-scrolling notebook to show output [closed]

I have made a simple "percent complete" output to track my For loop, where I incrementally print values and then delete the output right before printing the next ...
0
votes
0answers
29 views

Mathematica does not responding [duplicate]

These days, when I opened mathematica 10.4 in Windows 10, I even cannot type three characters, and it stucks. Yes, every time when I type the third number or character, it stops. I found that, even, I ...
7
votes
1answer
106 views

How to convert arbitrary raw boxes directly into String?

This question is motivated by the recent question about searching inside of the NB files. According to the Documentation, ToString expects a high-level WL ...
15
votes
3answers
820 views

Is it possible to insert an animated image into Mathematica notebook?

I find it very convenient to use Mathematica notebooks to organize the codes + results. I was wondering if it is possible to insert an animated image (say an animated gif) in the middle of a notebook....