# Tag Info

21

There are several configuration files that you can use to load functionality at startup. They have the form ($BaseDirectory |$UserBaseDirectory)/(Kernel | FrontEnd)/init.m where $BaseDirectory is for every user on the system and$UserBaseDirectory is for you along and Kernel or FrontEnd specifies what you are configuring. In fact, a lot of the ...

18

Mathematica by default uses its own ssh implementation. You can see it in the dialog of the remote kernel configuration dialog in the advanced options: java -jar mathssh. As far as I know, you can safely replace that with the local ssh command (most likely /usr/bin/ssh). You have to select the "Advanced Options" radiobutton to do that (if you first add ...

17

With $UserBaseDirectory/Kernel/init.m the most obvious place to put code which should be autoloaded has been mentioned. But I think it might be worth mentioning that there is also the Autoload directory within$UserBaseDirectory where you can put any package file or package directory and those will automatically be loaded at startup. For the purpose ...

13

V11+ notes Stylesheet solution does not seem to work and the section repeatedly opens and closes. I am not sure why yet. If you are fine with details section permanently opened you can edit "Notebook" style and add: NotebookDynamicExpression :> Refresh[ CurrentValue[EvaluationNotebook[], {TaggingRules, "Openers", "NotesSection"}] = True , None ] ...

12

You can certainly draw 2D fractals, eg the Mandelbrot set ClearAll[mnd] mnd = Compile[{{m, _Integer}, {n, _Integer}, {steps, _Integer}, {maxiter, _Integer}, {xmax, _Real}}, Block[{z, c, iters = 0}, z = c = -xmax + 2.*xmax*n/steps - 0.5 + I*(-xmax + 2.*xmax*m/steps); While[(iters < maxiter) && (Abs@z < 2), iters++; z = z^2 +...

12

I think the lower quality you see has to do with the downscaling of the image. It is generated at 512x512 pixels which you can check if you right mouse click on the image, but it isn't displayed that way. So, if I change this to: OpenCLFractalRender3D[ImageSize -> 512] I get . As to your second question: of course you can use Mathematica to generate ...

9

You can use the UnitSystem option of EntityProperty, EntityValue[Entity["Planet", "Earth"], EntityProperty[ "Planet", "Radius", UnitSystem -> "Metric" ] ] (* Quantity[6371.008, "Kilometers"] *) Why am I talking about EntityValue when you asked about PlanetData? Because PlanetData calls EntityValue under the hood (as do all newer XXXData ...

9

One can read the current setting using the undocumented symbol $InternetProxyRules. The undocumented functions to change the proxy settings are in the PacletManager context. The "Use proxy settings from my system or browser" setting is equivalent to PacletManagerUseInternetProxy[Automatic] the "Direct connection to the Internet" setting is equivalent ... 8 I've now found the solution. The reason that the path is not available is that it is set in an init file, and subkernels do not execute any init files. However, as it turns out, the reason why they do not execute any init files is that they are explicitly passed the option -noinit when started (you can easily see that by looking at the process listing on ... 8 You can just add you package path to the path on each of the kernels ParallelEvaluate[AppendTo[$Path, ToFileName[{$HomeDirectory, "MyPackages"}]]] now running ParallelTable[$Path, {1}] will show that the change has been propagated. Besides using an init.m file, there is another way to run code on each kernel after start-up (full credit goes to this ...

7

Sounds like you are looking for $Messages and$Output, and maybe also $PrePrint or$Post. $Messages and$Output are a list of streams to which corresponding output is written (note that $Output is only getting output from Prints, not from return values of shift-return-evaluations). To cover return values of shift-return-evaluations you might want to ... 6 I use the following solution for this problem: I have a package called AddPath which can add pre-defined directories to the$Path. This package is placed in $UserBaseDirectory/Autoload, so it gets loaded on parallel kernels as well. I put another very basic package in Autoload which simply contains Needs["AddPath"] AddPath[{"Pack1","Pack2",...}] Then I ... 6 I know there are discussions on this site about version control, etc. And it appears that CellChangeTimes are used for this purpose, but how They have nothing to do with version control. You might want to disable it so that it does not affect version control systems. As an individual user working alone, is this data potentially useful to me? If you ... 6 For removing a misspelled word from the correct word list, go to Edit->Preferences, select the Advanced tab, select Open Option Inspector, lookup/search for SpellingDictionaries, click on the edit button for the CorrectWords entry, highlight the incorrect entry and select remove. 5 I recommend creating a palette with a button that can insert the code for you. Then save the palette and make it easy to access through the palettes menu. Create palette Suppose your code is (for sake of simplicity), code1 = HoldComplete[1+1]; The create the palette: CreatePalette[ Column[{ PasteButton["Template1", Defer @@ code1] }], ... 5 Usually by the time the front end gets something, aborting or interrupting interactively is useless, so I won't suggest that. IF I suspect a problem beforehand, I would use Short or something similar. For the type of question you are posing, I would try the Villegas-Gayley pattern to inject a high priority DownValue into MakeBoxes, flagging on something ... 5 Preamble/Disclaimer: I will present my thoughts rather than giving a definite answer in the Wolfram language, focused solely on configurator technology/methodology, and will give some humble suggestions. I have NO knowledge about ASP (Answer Set Programming) and in addition have absolutely NO knowledge about the scope and organization of your project. I’m ... 4 And if disk or screen space is at a premium, have a look at Stephan Leibbrandt´s lovely Mandelbrot oneliner using just 130 characters: Oneliner Competition 2011 Notebook of the winning entries... quite handy to view with the CDF plugin. 4 I think you only get the warning once because Simplify somehow remembers which expressions it has simplified before. For example, in a new session this only gives me a warning for the first evaluation of FullSimplify: FullSimplify[1/x, x == 0] FullSimplify[1/x, x == 0] output: Now if I clear Simplify and run FullSimplify again the warning show up again ... 4 This is most likely due to MathLink. The MathLink protocol can transfer information in several ways, most commonly using shared memory (the default on the local machine) and TCP/IP (when different computers communicate). Even if you just launch an installable MathLink program separately (not using Install), first it will prompt you for the name of a new ... 4 Answer by ciao shows a way to edit user-supplied list of correct words via GUI. The same can be done via setting$FrontEnd option: Options[$FrontEnd, SpellingDictionaries] {SpellingDictionaries -> {"CorrectWords" -> {}, "IncorrectWords" -> {}, "Suggestions" -> {}}} The meaning of the sub-options is documented: "CorrectWords"->{"word1",... 3 sorry for answering so late but i just saw the question. Actually it is quite simple. Just go to evaluation>kernel configuration options add a new kernel and fill like this: replacing path/to/your/perm/key, yourec2user and your.ec2.address with your information. notice that we are using macs native ssh instead of mathematica's java ssh. the -i option is ... 3 According to the "Front End" section of Configuration Files for the Wolfram System, user preferences, including those set by Options Inspector, are located in$UserBaseDirectory in the file "/FrontEnd/init.m". This is a large file, and the options set by Options Inspector are at the end. The list appears to contain all options, whether changed by the user ...

3

The directory you are mentioning is what $UserBaseDirectory on a linux machine usually is set to. AFAIK the content of that is identical (despite some subdirectories for OS specific binaries) for other OS. There is also a similar directory$BaseDirectory which will contain similar data for all users on that system. Here is a description of some of the ...

3

Heike figured out what was going on. However, if you want a command that will make your Simplify[expr] beep everytime, you need to turn of the symbolic part of the cache using SetSystemOptions["CacheOptions" -> {"Symbolic" -> False}]

3

There seem to be at least two ways of changing the MATHEMATICA_USERBASE directory variable, at least in the Windows XP environment, each of which has its own uses, and two of which follow: 1. Open a “Command Prompt” window; issue a “Set” command: Set MATHEMATICA_USERBASE=D:\WorkB\Mathematica, for example; Open MathKernel within the Command Prompt window ...

3

This works on my system (v7, Windows 7): Cases[ NotebooksMenu /. Options[$FrontEnd], FrontEndFileName[{_, path__}, name_, ___] :> FileNameJoin @ {path, name}, {3} ] The first _ in {_, path__} is to skip$RootDirectory; if you want to preserve $RootDirectory leave it out. To create a palette with buttons to open these Notebooks you may use: ... 2 Based on Kuba's findings in this and this answers and also thanks to user1950580 who uncovered FrontEndPrivateSetCurrentValue (his answer was the only place where this function was listed), here is my modification of Kuba's stylesheet approach which works well with version 11.1 and is tuned on to influence other versions installed as little as possible. In ... 2 Closely related: How to customize the package editor interface? You can create a ReverseColor.nb in \$UserBaseDirectory/SystemFiles/FrontEnd/Stylesheets, customize it and point it to ReverseColor.nb from $InstallationDirectory.$path = FileNameJoin[{$UserBaseDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "ReverseColor.nb"}] If[ FileExistsQ @$...

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