6

By default Mathematica uses $HistoryLength = Infinity, so it stores every output expression since you started Mathematica in the data associated with the System symbol Out. If a lot of your output takes a lot of memory, you can easily slow down your computer. Instead, you could use this $HistoryLength = 2; Then Mathematica will only remember the two most ...


4

I got it to work with the command line: Mathematica "C:\*my path*\CDoc.nb" But first I had to do the following: Open CDoc.nb Select the input cells you want to execute on open and then select from the main menu: Cell > Cell Properties > Initialization Cell (Or press Ctrl+8) Open the Option Inspector by pressing Shift_Ctrl+O or by selecting ...


3

The following code will create a palette and print the file name and date: CreatePalette[{Button["Filename and Date", NotebookWrite[ InputNotebook[], {NotebookFileName[SelectedNotebook[]], DateString[]}]]}] But note, that this will only work if the input notebook has a name. A new notebook needs to be saved before it acquires a name. ...


2

The past few weeks I've gotten into customizing my Mathematica keybindings so I figured I'd share them and share what I've learned. This all works as stated on my system ($Version is 12.1.1 for Linux x86 (64-bit) (June 19, 2020)) but I have not tested these elsewhere so YMMV. If you like to use input aliases and find hitting Esc twice inconvienent then add ...


1

Try: CreatePalette[ Button["Filename and Date", str1 = NotebookFileName[SelectedNotebook[]]; str2 = DateString[]; NotebookWrite[ InputNotebook[], {Cell[str1, "Content"], Cell[str2, "Content"]}] ] ]


1

v12.2 update. If you have just inserted the line, then Undo will remove it. If the line is at the same height as an edge of the right bracket of a cell, then select this cell, go to menu Insert > Horizontal Line > None or uncheck the box. This is the inverse procedure of creating the line. I have a notebook with a line at the end, apparently not ...


Only top voted, non community-wiki answers of a minimum length are eligible