Tag Info

Hot answers tagged

7

I don't have any kernels running on a remote machine so I cannot be sure of how this is handled, but I think it has as good a chance as any of working. A file that exists: MathLink`CallFrontEnd[MLFS`FileByteCount["A:\\foo.txt"]] 16 A file that does not exist: MathLink`CallFrontEnd[MLFS`FileByteCount["A:\\bar.txt"]] $Failed Other commands in ...


5

Try FE`Evaluate[FEPrivate`GetPopupList["MenuListNotebooksMenu"]] It works in my machine :) Then you may try something like this to open the notebooks: ActionMenu["Open History", Rest@FE`Evaluate[FEPrivate`GetPopupList["MenuListNotebooksMenu"]] /. HoldPattern[a_ -> b_] :> (a :> NotebookOpen[$HomeDirectory <> b])] Edit The ...


5

(Reposting my comment as an answer to take the question off the unanswered list). This Linux-specific crash has been fixed as of version 10.1.0.


4

It has been like this for a long time, hasn't it? At least since version 7. I always assumed that InputForm (the Head, not the format) wasn't really intended for reentry, though since it does mostly work I guess it should work completely. Most of the time I just let the output render, select it, and use the menu command: Cell > Convert To > InputForm ...


3

After commenters and answerers pushed me to investigate TaggingRules rather than DynamicModule as a strategy, I've worked out a solution. After the fact, it's actually embarrassingly simple. In the package that supports this notebook (or, equivalently, in notebook initialization cells), I define helper functions: SetAttributes[getCounter,Listable]; ...


2

The problem is that a cell made with Cmnd+Shift+L has form Cell[BoxData["...", "Output", "Input", FormatType -> "InputForm"] The code editor only likes cells with the form Cell[BoxData["..." , "Input"] If you were to open the cell with Cell > Show Expression (Cmnd+Shift+E) edit to remove "Output", and FormatType -> "InputForm", all would be ...


2

Please refer to: Prompt a set of possible options Make a backup, then open Reduce.m Edit it to read: {Cubics -> {"True", "False"}, GeneratedParameters -> {}, Quartics -> {"True", "False"}, Backsubstitution -> {"True", "False"}} Save the file Restart Mathematica Enjoy the result


2

The "Wolfram Mathematica" directory is created automatically by the front-end and is located in $UserDocumentsDirectory. It is the default directory to save new documents in and also is on TrustedPath. The typical location for Linux systems is $HOME/Documents, however it may happen to fall back on $HOME depending on the Xdg user directories setting. This ...


1

Here is the conversation I had with the support. First response from support@wolfram.com Using InputForm returns an expression suitable for input, so when you change it it becomes an input expression. Please useToString to generate a string in input form: ToString[ArrayPlot[RandomReal[1, {2, 2}]], InputForm] That indeed did not help me ...


1

Perhaps this could work for you: copyOutput[expr_, pageWidth_:20] := Module[{f = $TemporaryPrefix, s}, s = OpenWrite[f, PageWidth -> pageWidth]; Write[s, expr]; CopyToClipboard[Import[f]]; Close[f]; Return @ expr ] So when you run this: In[]:= copyOutput[Range[40]] Out[]= {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...


1

Some useful information are in this post from Szabolcs, however your question is a little different. Indeed, actually you only need to save an information (the counter value) inside a notebook and preserve it across frontend sessions. For such cases TaggingRules seems to be the best solution. DynamicModule could eventually be another option to save ...


1

Not sure it's good practice, but in a notebook you can format the text inside the (* *) comment designators to your liking. Here's an example module with "Text" style used with inline comments: Additionally, it's possible to disable evaluation for individual cells (from the menu: "Cell"-->"Cell Properties"-->"Evaluatable"), and one can use Inactive to ...



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