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
97 votes
5 answers
9k views

Using the Mathematica front-end efficiently for editing notebooks

Background: I have used Vim for 15+ years. There is a certain "one"-ness with the editor one achieves. Emacs users also experience this. Notepad users do not. My current interaction with the ...
user avatar
84 votes
2 answers
10k views

Is there a way to separate variables between multiple notebooks?

I often correct homework by checking the calculations in Mathematica. Sometimes you would like to have two solutions open at once. However often defined symbols such as ...
niklasfi's user avatar
  • 2,613
79 votes
1 answer
5k views

Numbered equations/formulas

How do you number equations in Mathematica notebooks so that they are exported correctly into latex? In case you don't know how to put numbered equations here is quick review. Open a new notebook and ...
jmlopez's user avatar
  • 6,470
69 votes
5 answers
5k views

How to disable the small pop-up windows when mouse is over a Mathematica command in V10?

In version 10, when the mouse is over a Mathematica command, a small pop-up window comes up that one can click on for help on the command. Is there an option to disable this feature? Screen shot: I ...
Nasser's user avatar
  • 142k
66 votes
7 answers
19k 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 ...
dearN's user avatar
  • 5,341
59 votes
5 answers
5k views

Can the banner in the Home Edition be removed?

The Mathematica Home Edition shows a banner at the top of every notebook: Is there a way to (permanently) get rid of it, without violating the EULA? Edit Yesterday, I sent this message to WRI ...
stevenvh's user avatar
  • 6,856
55 votes
5 answers
4k views

Are there suitable versioning systems for Mathematica notebooks?

I am considering a project using Mathematica and openCL. I know that the openCL C source code can be tracked. Has anyone used a versioning site or software so multiple developers can modify a common ...
Fred Daniel Kline's user avatar
49 votes
7 answers
20k views

Is there a way to hide or toggle the visibility of code?

Many of my notebooks have a similar repeating structure, which is very convenient and reliable for my workflow: a chunk of code defining a Manipulate for exploring ...
orome's user avatar
  • 12.8k
49 votes
1 answer
4k views

How to export a Mathematica notebook into Markdown?

Is there a way to export a Mathematica notebook into Markdown? I'm sure it's possible to implement rules for converting each Mathematica cell subexpression into Markdown, but I'm also sure that I ...
M.R.'s user avatar
  • 31.4k
47 votes
1 answer
3k views

Open two copies of the same notebook

Is there a way to open one notebook in two (or more) different windows? This can be helpful when working with a long notebook and one wants to edit one part of it while looking at a different part. ...
Dror's user avatar
  • 1,831
43 votes
4 answers
11k views

How to Keep Input Cells Hidden After Evaluating Notebook

I've created a notebook for use in an in-class presentation. There is a fair amount of MMA code, and my students know nothing about MMA nor do they need to. I don't want to distract them with the code....
Tim Mayes's user avatar
  • 1,449
43 votes
1 answer
1k views

Do Mathematica notebooks include personal metadata?

I am about to send a Mathematica notebook to someone and I would like to make sure it does not contain any information that could personally identify me. I would also like to produce pdf files from ...
Emilio Pisanty's user avatar
41 votes
3 answers
1k views

How to use the Testing Notebook to test a package without shadowing?

I think an important purpose of the new Testing Notebook in version 10 should be to test user packages (instead to test the builtin functions in the ...
Yi Wang's user avatar
  • 7,347
40 votes
3 answers
9k views

How to set default magnification for all windows

This is certainly a newbie question but I could not find the answer by searching. I am using Mathematica 8 under Windows 7. I want to use default magnification of 150% for all notebooks and help ...
user avatar
36 votes
2 answers
3k views

How can I set an image to be the Notebook's background?

Is it possible to set a notebook's background to a nonscrolling image?
M.R.'s user avatar
  • 31.4k
36 votes
2 answers
3k views

Good ways to organize and document collections of mathematica notebooks?

I've now been using Mathematica for about a year, and am starting to get a somewhat unwieldy collection of notebooks. Sometimes I've figured out how to do a particular task in one of them, and want ...
Peeter Joot's user avatar
  • 6,398
34 votes
3 answers
3k views

How to place an image inside a notebook, with the minimum memory footprint?

When creating a notebook with images, like photos, the file tends to quickly get big, which makes it difficult to use the notebook format for training material containing a lot of images. Are there ...
P. Fonseca's user avatar
  • 6,665
34 votes
2 answers
23k views

Delete the current notebook cell using the keyboard

Is there another way than pressing Ctrl+. until the whole cell is selected and then pressing Del? If this is not built in, can I create some sort of a global macro to do this and bind it to a ...
Meh's user avatar
  • 1,637
34 votes
3 answers
22k views

Pasting $\LaTeX$ into a Mathematica notebook

I have read that $\LaTeX$ source can be directly pasted into a Mathematica notebook. However, I have been unsuccessful in this regard. An example of the errors received are: ...
user001's user avatar
  • 1,397
32 votes
4 answers
9k views

Relative paths for portable notebooks in Mathematica

I cannot find how to use relative paths in Mathematica. My directory structure is simple. ...
Matthew Kemnetz's user avatar
32 votes
3 answers
10k views

What are the advantages of using .nb rather than .m files?

I can edit a notebook within the mathematica front end and then Save As a .m file, which produces output like this: ...
Ubiquitous's user avatar
31 votes
1 answer
2k views

How to write documentation in Wolfram Style?

Rather than craft my own stylesheets for documentation, I'd like to emulate (copy? ape? borrow?) the Wolfram style. Here is a very small example (type this in the help-box, which you get by pressing <...
Reb.Cabin's user avatar
  • 8,661
30 votes
4 answers
9k views

Keyboard shortcut to evaluate notebook

(If this is entirely trivial, although I couldn't find an answer as much as I searched the archives, I will delete the question.) How could I add a keyboard shortcut to evaluate the entire notebook ...
stathisk's user avatar
  • 3,054
30 votes
2 answers
903 views

Writing a technical note in Mathematica

I have been using Mathematica for many years, mostly for plotting, derivations and numerical computations. Many times I tried to incorporate some text and formulas in my worksheets. Text is Ok, but ...
yarchik's user avatar
  • 18k
29 votes
2 answers
1k views

Saving my code before cell evaluations: Insurance against front end hanging

I guess my programming working style is not unique. I develop programs one cell at a time, and when I have some confidence about what I did, I put all my mess together refining the code, building up ...
Dr. belisarius's user avatar
29 votes
2 answers
1k views

Using the Wolfram Language in a Commercial Product

Background I am currently consulting with a client that is using Mathematica to prototype a number of proprietary algorithms. Many man-hours of work have gone into the development of these algorithms ...
Spikeh's user avatar
  • 293
27 votes
1 answer
3k views

How to restore corrupted files?

I have a file that I can't reopen because MMa was "Not Responding" and I had to shut it down. I found links online to this: http://support.wolfram.com/kb/12423 I executed those two instructions in a ...
Jerry Guern's user avatar
  • 4,602
27 votes
2 answers
2k views

Attaching a file to a notebook

Is there a way to attach a file into a notebook and open it later with, for instance, a double click (or another action button)? In Mathematica windows version, the insert menu has the "object..." ...
26 votes
6 answers
4k 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 ...
Reb.Cabin's user avatar
  • 8,661
26 votes
3 answers
2k views

how to make cursor jump automatically to next input cell after evaluating previous one?

When making separate cells in order to make separate computations to better see the result of each one before going to the next cell to do the next computation (which is a good way of doing things), ...
Nasser's user avatar
  • 142k
26 votes
1 answer
516 views

Tool to locate bloat in a notebook?

In developing a notebook, I often find I have created a very boated file that takes a long time to save. I would like to slim it down. It is usually the result of graphics and images, but they may be ...
abwatson's user avatar
  • 1,919
25 votes
5 answers
17k views

How to change default notebook background color?

How does one change the default notebook background color?
Tim's user avatar
  • 395
25 votes
4 answers
821 views

How to get complete Documentation Center graph of guide pages?

On the very last image below you can see a typical path of walking through Documentation Center guide pages. What is the best way to get the graph data and visualize the whole structure of these ...
Vitaliy Kaurov's user avatar
25 votes
3 answers
3k views

How to find pieces of code responsible for syntax errors?

Especially: How to find the piece of code responsible for a missing parenthesis problem caused by a misplaced SuperScriptBox For last 30 minutes (and I was lucky ...
Nasser's user avatar
  • 142k
25 votes
0 answers
1k views

How would I improve this Karaoke machine code?

I was looking at a large collection of Import/Export user suggestions the other day and it dawned on me that we finally have MIDI import in Mathematica 9, which is rather interesting since MIDI ...
Arnoud Buzing's user avatar
24 votes
2 answers
5k views

How do I automatically evaluate a cell when a notebook is opened?

I'm trying to put together a GUI in Mathematica and need to evaluate one cell to kick that off. Is there a way to automatically evaluate that cell when the notebook is opened? Here is an example of ...
Nothingtoseehere's user avatar
24 votes
3 answers
7k views

Collapse a section of a huge function

Is there an elegant way of hiding/collapsing/folding only a portion of a function? If functions could span multiple cells, this would have been straight-forward!
my account_ram's user avatar
23 votes
2 answers
860 views

How can I clean up a notebook?

By cleaning up a notebook, I mean how can I hide all the codes in the notebook so that the end-users can't see it? I saw Eric Schulz's famous interactive calculus textbook, the users can't see the ...
N.T.C's user avatar
  • 901
22 votes
2 answers
794 views

Programmatically copy code so that all output is commented out

UPDATE: The final palette has a new home here! Please test and provide feedback (usability, suggestions, bugs) A note to the readers and voters: This is intended for community use, so please test the ...
Szabolcs's user avatar
  • 234k
22 votes
3 answers
3k views

How to effectively diff a notebook?

How to effectively diff a notebook with another version of it? This is usually needed/encountered in revision control, but can be generally useful. What i currently do is disable notebook history, ...
user13253's user avatar
  • 8,666
22 votes
3 answers
988 views

Changeable header and footer banners in Slide Show style

I would like to create Mathematica slide shows that contain several tailored, fixed banners as headers and footers, much as MS Powerpoint, MS Word, Apple Pages, and LaTeX documents allow one to ...
David G. Stork's user avatar
21 votes
3 answers
5k views

How do I create a package from an existing notebook?

I have a notebook containing some functions, for example: f[x_] := 2*x g[x_] := x^2 Now I would like to convert this notebook to a package, ...
user9068's user avatar
  • 297
21 votes
1 answer
1k views

NotebookFind and String Pattern Expressions

Is there a way that NotebookFind can be used to match string pattern expressions rather than just strings? The documentation for ...
StackExchanger's user avatar
20 votes
9 answers
8k views

Is there a notebook autosave frequency configuration?

I've had Mathematica crash on me a number of times, and have had to recreate notebook contents from the last save point. I was looking for something in the preferences like an autosave frequency ...
Peeter Joot's user avatar
  • 6,398
20 votes
2 answers
3k views

How to make a parallel auto-generated .m package from Initialization cells?

according to the documentation at ref/InitializationCell, When you first save a notebook that contains initialization cells, you have the option to make a ...
Reb.Cabin's user avatar
  • 8,661
20 votes
2 answers
2k views

When to make (file.nb) instead of (file.cdf)?

I started with File > New > FreeCDF so I can save my work in a format compatible with the CDF Player. I can use Mathematica to make new cells, evaluate input and so in the CDF file. What are the ...
Ted Ersek's user avatar
  • 7,124
20 votes
3 answers
1k views

Table of Contents with hyperlinks?

Is there a way to get table of contents I can click on? I'm looking for something like Table of Contents module in Jupyter notebooks where I can jump between sections easily, here's what my scratch-...
Yaroslav Bulatov's user avatar
20 votes
1 answer
630 views

How does the built-in debugger decide what to highlight?

How does the built-in debugger decide which definition to highlight in the notebook when Break on messages" is enabled? Here's an example to illustrate what I mean. First, enable the debugger (...
Szabolcs's user avatar
  • 234k
20 votes
2 answers
295 views

Ideal workflow for developing and running "pipelines"

tl;dr What are some good workflows for developing and running data processing pipelines with Mathematica? I sometimes develop data processing pipelines with Mathematica. I load some data, transform ...
Szabolcs's user avatar
  • 234k
20 votes
2 answers
1k views

Publishing a Mathematica notebook

I am considering publishing a Mathematica notebook, used for analysis of some data, as a “supporting information” file alongside a research paper. What are the common practices for doing so, and what ...
F'x's user avatar
  • 10.8k

1
2 3 4 5
27