Skip to main content

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
0 answers
43 views

Create custom Code like Cell

I like the formatting for Code and would like to use it for all my input. However, I want to be able to have both Initialization and non-initialization cells and I'...
Kvothe's user avatar
  • 4,591
1 vote
1 answer
50 views

Controlling Manipulate using a mouse-over wheel scroll

Can I get Manipulateto allow me, once the plot appears, to hover my mouse over the plot and scroll my mouse wheel to vary the parameter $a$? Currently I need to ...
apg's user avatar
  • 2,185
3 votes
1 answer
90 views

Defining an output format that doesn't break Ctrl+Shift+I

I'm used to pressing Ctrl+Shift+I (or N if I want a shorter form) to reformat my input cells in a nicer way after editing them, e.g., to remove unnecessary parentheses, add or remove spaces as needed, ...
Najib Idrissi's user avatar
2 votes
1 answer
61 views

How to clear NotebookEventActions or unbind keyboard event

I tried to write a function to "Evaluate in Place", as I've shown in: How to get the output of evaluating in place and append the output to the place. But now I have encountered a new ...
Yao Li's user avatar
  • 111
0 votes
0 answers
38 views

Saved notebooks on new Mathematica install do not reopen

I recently installed Mathematica on a new machine. The new machine is running version 12, and I believe the old machine was running version 10 (though I don't have it in front of me). I have been ...
Anoncademic's user avatar
2 votes
1 answer
165 views

How to get the output of evaluating in place and append the output to the place

I am trying to use MMA for some engineering calculations, and the text cell contains both descriptive text and mathematical formulas. The example is as follows: ...
Yao Li's user avatar
  • 111
0 votes
1 answer
51 views

Appending Tabs to an existing TabView output

I would like to do a kind of versioned TabView for several runs of the same code. I would like some help in fixing this prototype code: ...
ogerard's user avatar
  • 959
2 votes
1 answer
59 views

Not able to use multiple notebook at a time

I have recently shifted to Macbook Pro M3 and having problem in running multiple notebook at a time. In Ubuntu I could open as many notebook as I want directly by clicking the notebooks. Now in Mac, ...
user98564's user avatar
0 votes
1 answer
55 views

How to plot points on a graph curve under logarithmic coordinate axis

I am trying to draw a curve and set a special point based on the logarithmic abscissa, as shown in the following example. The function is 1/(1+(RCw)^2)^0.5. ...
Yao Li's user avatar
  • 111
3 votes
1 answer
51 views

How to disable add a hyperlink with "https" prefix when type shortcut Ctrl+Shift+H

I tried to add a hyperlink to the text using the shortcut Ctrl+Shit+H to open the Zotero application; but every time MMA notebook adds the "https" prefix by default, and can only be ...
Yao Li's user avatar
  • 111
3 votes
1 answer
92 views

How to Convert WLSymbolFactory to Python String?

I'm trying to simulate with python and Mathematica, Python need to generate and save some pictures to the directory of current mma notebook, I know the function that ...
Yao Li's user avatar
  • 111
0 votes
0 answers
18 views

How to make chat-enabled the default notebook?

I keep forgetting to command+shift+n, is there some way to do this and/or remove the option for non-chat notebooks?
user5601's user avatar
  • 3,675
2 votes
0 answers
27 views

Notebook search with snippets programmatically

The normal "find" function in large notebooks hangs. I'd like to implement in-notebook find programmatically with displayed snippets of the results: ...
user5601's user avatar
  • 3,675
4 votes
0 answers
42 views

How can I make Subsubsection collapsible? [duplicate]

In my work, I’ve encountered the need to make sections of level ‘Subsubsection’ collapsible. Sections of higher levels are collapsible by default. However, I’m unable to make Subsubsections ...
Konstantin's user avatar
0 votes
0 answers
59 views

Can IntelliJ be made to look like notebook?

I am developing a package for my company, which has grown into multiple sub-packages. I have been using the notebook frontend for .wl files which is ok but I need ...
user13892's user avatar
  • 9,483
0 votes
0 answers
39 views

Disabling Natural Language Input in browser Notebook?

After a year or so I just came back to Wolfram Alpha Notebooks. But it seems that the default for inserting new cells is now NaturalLanguageInput. This is quite cumbersome as I can't even write a ...
WaterFox's user avatar
  • 185
4 votes
1 answer
149 views

How to create a hyperlink to an executable?

I tried the following: Hyperlink["label","file:C:\\Program Files\\ProgramName\\program.exe"] But when I click the generated link the system ...
user13892's user avatar
  • 9,483
4 votes
0 answers
31 views

How do I stop unwanted spaces in Mathematica cells styled as text?

Context: I am working in a Mathematica notebook (I am using 14.0, but the problem to be described was observed in earlier versions. At some time in the past, though, it was not happening.) Problem to ...
PaulCommentary's user avatar
0 votes
0 answers
60 views

Is it possible to do something automatically before opening .nb?

Is it possible to do something before opening .nb ? I mean, When the Mathematica kernel(?) receives a command to open the .nb, ...
imida k's user avatar
  • 4,315
1 vote
1 answer
172 views

Put tiny, hidden information on notebook

What is the standard method for inserting tiny, hidden information on notebooks (.nb files) ? From now on, I am planning to insert small, hidden information on every new notebook. And also for some ...
imida k's user avatar
  • 4,315
5 votes
0 answers
68 views

How to create a time-limited notebook for take-home exams?

I teach a physical sciences class using WL/Mathematica. The students do homeworks where they develop code and create simulations and visualizations that focus on physical phenomena. All that works ...
Craig Carter's user avatar
  • 4,565
2 votes
1 answer
90 views

Distinguish .nb that has been saved from new .nb

There may be many ways to distinguish .nb that has been saved from new .nb I found that in NotebookInformation[] may be useful. ...
imida k's user avatar
  • 4,315
2 votes
2 answers
44 views

Avoid opening closed cell group after button click

Button["Hello", Print["Hello"]] Opened cell group: Closed cell group (input cell is hidden by double-clicking output cell): But then if I ...
azerbajdzan's user avatar
  • 19.7k
4 votes
1 answer
139 views

Why does Mathematica's interface freeze when scrolling to the evaluating cell?

I have some heavy computations in Mathematica that use parallelization. The CPU consumption is ~80-90%. I use ProgressIndicator to trace the progress of the ...
John Taylor's user avatar
  • 5,861
0 votes
0 answers
42 views

Button with a certain built-in function makes error [duplicate]

Note that if I execute NotebookSave[InputNotebook[], SystemDialogInput["FileSave", "C:\\myfile.nb"]] will popup ...
imida k's user avatar
  • 4,315
0 votes
0 answers
57 views

Modify save as.. in the menubar (by editing MenuSetup.tr) [duplicate]

I use mathematica V 14.0.0. Is it possible to modify the behavior of Save as.. in the menubar? That is, I want to change the initial full path. We see a window ...
imida k's user avatar
  • 4,315
2 votes
1 answer
110 views

Button : interactive save as + custom initial path

Is it possible to create a button whose action is "save as... in menu bar" with custom initial full path. (custom initial full path is specified by user.) Note that if you click ...
imida k's user avatar
  • 4,315
0 votes
0 answers
52 views

Open multiple instances(=windows) of same .nb? [duplicate]

Is it possible to open multiple instances of the same .nb (on local disk)? First, open c:\test1\test1.nb. After that, can you open another instance(=window) of <...
imida k's user avatar
  • 4,315
3 votes
2 answers
237 views

How do I export an entire notebook as an image?

I am trying to export a complete notebook as a single image. I do not want separate pages, just one really long image. I think I got close to figuring this out in the past, but I forgot what I did. I ...
Alec Graves's user avatar
  • 1,078
1 vote
2 answers
165 views

Change default save path/location of an .nb by code

If I open c:\test1\test1.nb and click Mathematica MenuBar - File - Save as... then a window for Save as... pops up, and the default save path is ...
imida k's user avatar
  • 4,315
6 votes
1 answer
281 views

Hyperlinks that open smoothly in the same window

Suppose that I have test1.nb and test2.nb in my local disk. For simplicity, suppose that ...
imida k's user avatar
  • 4,315
1 vote
0 answers
57 views

Initialization Cell evaluation warning : turned off but still [closed]

I have a two .nb files, MyStart.nb and MyDoing.nb in c:\testfolder. My intention is that if ...
imida k's user avatar
  • 4,315
0 votes
0 answers
56 views

Run something as soon as the notebook is open

I want to create a .nb file, say DoSomethingAsSoonAsOpen.nb, such that in any case as soon as DoSomethingAsSoonAsOpen.nb file is ...
imida k's user avatar
  • 4,315
2 votes
1 answer
51 views

Bind a key to show autocompletion

I've searched for a feature which is usually available in most IDEs where you are able to de-activate autocomplete and by pressing a key, usually Tab, the autocompletion pops up and you can either ...
José Ferreira's user avatar
3 votes
1 answer
77 views

Hiding code in presentations programmatically

A number of discussions is dedicated to hiding the code/input in presentations or notebooks. It is very simple to hide the input by hand. I could not find, if it is possible to hide input by the code ...
Konstantin's user avatar
7 votes
1 answer
308 views

Notebook starts formatting content automatically and then collapses

I am working on a notebook of size 5 MB which contains only data and Plot or ListPlot on WIN64 with MMA13.3. I am experiencing ...
MMA13's user avatar
  • 4,644
0 votes
0 answers
67 views

Any way to eliminate evaluating cells except for "Abort evaluation"?

I have a notebook with many cells, one of which contains an evaluation of some condition. If it is False, I want to have an automatized way of the "Abort ...
John Taylor's user avatar
  • 5,861
3 votes
1 answer
126 views

Notebook key shortcut to move current cell group up/down/in/out?

How would one add (four custom keyboard-based not palette-based) shortcuts for moving the cellgroup containing the cursor up and down and in and out (akin to tab indent) relative to adjacent cells. ...
user5601's user avatar
  • 3,675
0 votes
0 answers
51 views

Problem Mathematica/Windows frontend: cell evaluation

Using Mathematica actual I have problems executing or activating notebook cells: Every input needs an extra click on the mousepad to evaluate! Any idea how to "repair" Mathematica? Thanks!
Ulrich Neumann's user avatar
1 vote
1 answer
42 views

Why is the form of the expression not copied in PasteButton?

I'm going to make a palette for partial differential and total differential. ...
Milk's user avatar
  • 1,718
0 votes
0 answers
37 views

DateListPlot and PlotLegends make FrameTicks disappear

I am using Mma12.0 ($Version gives "12.0.0 for Microsoft Windows (64-bit)"). Consider the procedures below: Open a new notebook. Type this code and run: <...
Harry's user avatar
  • 2,745
1 vote
1 answer
83 views

Customising the editor: (real) monospace font and dark theme (and more)

I don't know how to make the code editor in Mathematica present the code in a real 'monospace' font, with a dark, customisable theme (syntax highlighting and so on). This is something that keeps me ...
Vicent's user avatar
  • 1,101
1 vote
3 answers
167 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
68 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
80 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,675
5 votes
1 answer
176 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 ...
Milk's user avatar
  • 1,718
0 votes
0 answers
50 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
  • 132
4 votes
2 answers
97 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
115 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,225
5 votes
2 answers
242 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
  • 167

1
2 3 4 5
27