Questions tagged [packages]
Questions on Mathematica packages, which are self-contained bundles of Mathematica code that add new functions and other functionality.
678
questions
0
votes
0answers
18 views
Function working in command line session but not in package [duplicate]
I have this pretty straight-forward function
GetMinimum[function_, xmin_] := First[FindMinimum[{function, x>xmin}, x]]
that works perfectly within a ...
1
vote
1answer
79 views
Evaluating all the notebook calling a package doesn't work whereas evaluating the package “manually”, then run the notebook [duplicate]
I have put all the function I use regularly in a package.
At the beginning of my notebook I have a section containing the following stuff.
...
2
votes
1answer
955 views
Simple question about package : why it doesn't work?
My notebook can't load my package and I don't know why.
I called "testons.m" the file containing my package, I wrote inside it the following exemple code :
...
7
votes
1answer
182 views
How to include AceFEM analysis in a package
I would like to wrap my AceFEM analysis in one function and include it in a Mathematica package (.wl). I have followed the instructions on how to create packages from documentation and saved the ...
1
vote
1answer
101 views
Why can't package call imported association list?
This is question is also posted at the Wolfram site here. The files are available there as well.
I have a need to make use of a list of associations for fast lookup inside a Package implementation. ...
6
votes
0answers
83 views
Infix non-ASCII operator needs a space to be parsed correctly in a script
Bug introduced in 9.0 or earlier and persisting through 11.1
First off:
...
1
vote
1answer
332 views
Mathematica package for power spectra of scalar perturbations
Is there any Mathematica package available to numerically compute the power spectra of the scalar and tensor perturbations in cosmology? I'd like to numerically calculate the tensor to scalar ratio in ...
6
votes
2answers
165 views
Add package markdown to autogenerated package
I develop in .nb files and autogenerate my packages from them (by setting the notebook option AutoGeneratedPackage -> Automatic) and have no desire to change ...
13
votes
1answer
361 views
How to automatically do a computation, Quit[], restart and do a new computation
Related questions have been asked before (eg Where does a package have to be loaded?, https://stackoverflow.com/questions/6152023/quit-kernel-in-mathematica-by-a-command-not-using-evaluation-menu, ...
3
votes
1answer
113 views
Autoload a package
I want to aoutoload a package at the beginning of a notebook.
I set up my directory as written here
How to use the Autoload directory?
So, I have these files:
../Work/MyFile.nb
../Work/...
0
votes
0answers
180 views
Why the package (.wl) and .nb behaves completely different [duplicate]
I am developing an application in one part I am checking the if the functions are constant or not. I am using a couple of lines of code (it is possible that there is another way of doing it) but the ...
4
votes
2answers
192 views
Batch Loading of Mathematica Packages and Issues with Autoloading
I have a package that initiates some periodic tasks via the ScheduledTasks functionality. The tasks in question also require the use of parallel tools and the launching of external commands. ...
8
votes
3answers
205 views
Re-encode text file to use Mathematica's character name, like \[Alpha]
How can I re-encode a text file (or string) so that non-ASCII characters will be represented using Mathematica's standard names?
For example, if the original contents of the file was
...
5
votes
1answer
120 views
IGraph/M: How to understand IGMotifs?
There is a function IGMotifs in package of IGraph/M. I have read it some times but fail to understand it.
...
10
votes
1answer
264 views
Bifurcation package like AUTO?
I was wondering if there is any available continuation and bifurcation analysis package for Mathematica. I'm looking for something like AUTO. I've seen there is already a Matlab version of the ...
6
votes
1answer
425 views
1
vote
0answers
57 views
Where to put my packages [duplicate]
I wrote a few packages with various functions. Now I would like to put these packages to a location that I can "Get" them via <<name ( I prefer a directory "...
3
votes
0answers
62 views
Is the package documentation buggy? [duplicate]
At https://reference.wolfram.com/language/tutorial/SettingUpWolframLanguagePackages.html we read:
BeginPackage["Package`"]
set Package` to be the current ...
3
votes
0answers
153 views
Wolfram language vs Mathematica [duplicate]
Suppose I am developing a package (because I am :)). Mathematica gives me the option of creating a Wolfram Language (.wl) package or a Mathematica (.m) package. Why would I choose one vs the other? ...
7
votes
1answer
288 views
Package loading in init.m
I'm loading a package at startup in "~/Library/Mathematica/Kernel.init", which looks like this:
...
7
votes
1answer
294 views
Syntax Highlighting for WL files in Atom/Sublime?
What packages do people use for syntax highlighting in Atom, Sublime Text 3, etc?
4
votes
1answer
170 views
Context inside Do[…]-loop
Consider the following code:
Begin["mycontext`"];
myvar = 7;
Print[Context[]];
Print[Context[myvar]];
End[];
with the output
mycontext`
mycontext`
Now ...
1
vote
1answer
147 views
Use of standard form in .wl package
In a .wl package, i use the package notation but it is presented as inputform and it is consequently not very easy to read.
...
7
votes
2answers
151 views
How to create Functions that have Compiled functions effectively
I'm about to build a package that will provide lots of simple functions. I want these functions to run as fast as possible when evaluating numerically but still provide symbolic results when needed. ...
2
votes
1answer
93 views
Why is pattern matching different inside package
This works fine when put in a notebook:
TestFunction2[x_] := Column[{Head /@ x, Cases[x, _f], MatchQ[_f] /@ x}];
TestFunction2[{f[1, 2]}]
and produces:
...
22
votes
1answer
2k views
How can I install packages distributed as .paclet files?
I downloaded a Mathematica package. It came as a file with the .paclet extension. How can I install or uninstall it?
4
votes
1answer
560 views
Modeling Antennas
Radio amateurs often use EZNEC to model antennas. I was wondering if anyone knows of a Mathematica code to model and simulate an antenna. I have not found anything with a google search.
4
votes
2answers
196 views
AceFEM: How to improve legend in SMTShowMesh?
Note: This question is about AceFEM package for finite element analysis in Mathematica.
I would like to improve styling of color legend produced by default use of ...
7
votes
1answer
200 views
AceFEM: How to mirror a domain in postprocessing?
Note: This question is about AceFEM package for finite element analysis in Mathematica.
In finite element analyses we usually take advantage of symmetry of geometry and loading to model only a ...
2
votes
0answers
101 views
Neural Networks: Missing functions/data
Newcomer to both Mathematica and neural networks here, so please bear with me.
I'm running Mathematica (11.0.1) on a school server (Ubuntu 14.04), accessing it via ssh.
I'm trying to follow the ...
1
vote
1answer
92 views
Creating a package on Mathematica which will use the first derivative test
This is what I have so far (I'm new at this sorry):
...
15
votes
1answer
293 views
Setting Stylesheet for Package files in Version 11.1
Since many versions the frontend does a pretty good job as an editor for package files (.m or .wl). In versions up to 11.1 code as the following could be used to additionally tweak the appearance and ...
2
votes
1answer
219 views
Loading documentation of Package installed in any directory
Installing Package into $UserBaseDirectory or $BaseDirectory means automatic loading of the documentation (after calling the ...
4
votes
1answer
126 views
How to find all package we can LoadNETType
After we Needs["NETLink`"] and InstallNET[];,we can use load many .net packages by ...
1
vote
1answer
91 views
How to find all package we can Needs
We can encounter that interesting package sometimes,like GUIKit`,but I don't know how to find those.I can found that package which has been default loaded
...
2
votes
1answer
162 views
step-by-step calculation done by TransformProduct
Is it possible to see the step-by-step calculation done by TransformProduct function in MathStatica package?
3
votes
2answers
248 views
How to access externally defined symbols without polluting the current namespace?
NB: In this post, by fully qualified names I mean names like Global`x or SomePackage`y, which include their complete context ...
0
votes
1answer
138 views
How to avoid namespace leaks?
Below is a toy package that illustrates what I mean by "namespace leaks".
...
12
votes
1answer
395 views
Why SciDraw can not handle the StreamPlot?
I find that the package SciDraw is suitable for preparing the figure in the thesis. When I use it to plot the line, it works well. For example
...
2
votes
0answers
142 views
Symbolic second variation (quadratic form matrix)
Mathematica has a calculus of variations package that can compute the first variational derivative symbolically, rather nicely.
Does anyone know if there is a way to compute the quadratic form matrix ...
3
votes
1answer
420 views
Problem loading package
I'm a new user and I'm trying to load a package in Mathematica 11.0.
I've copied the DisturbingFunction.m package to %appdata%\Mathematica\Applications but after this I can't load it. I've tried ...
0
votes
0answers
102 views
Trouble using ProPac in Mathematica 11
Has anyone tried using ProPac package here on Mathematica 11? It seams to not work anymore.
3
votes
0answers
110 views
Finding the Mathematica package for time series
I'm studying time series. Searching at internet I found this pdf file with a lot a useful information and examples about time series.
I want to know if some one knows how to get the required package ...
2
votes
1answer
185 views
Creating isothermes, isochores etc
May be the question goes beyond the purpose of mathematica.stackexchange but I could not find anything similar with "googling".
Does it exist any Mathematica package/ application for creating ...
3
votes
0answers
94 views
How to resolve a context shadow problem (revised) [duplicate]
I have developed a notebook of 30+ functions for Geometric Algebra, all of which involved using the symbol e with subscripts like Subscript[e,1]. I write them here as e1, e2, e3 ... for readability. ...
5
votes
3answers
239 views
How does Needs[“foo`”] find the file that defines context “foo`”?
The post's title says it all, but if more detail is needed:
Suppose I have the following in some file /path/to/foo.m:
...
5
votes
2answers
421 views
Editing Wolfram Language Packages and Scripts
Background
I am currently working on a large software development project written in the Wolfram Language and I would like to organize my code in Wolfram Language Packages and Scripts (.wl files. See ...
5
votes
1answer
330 views
How to make a parallel auto-generated .wl package from a .nb notebook
As we know, owing to the set of SetOptions[InputNotebook[], AutoGeneratedPackage -> Automatic], a .m file will be generated automatically by the Mathematica ...
1
vote
1answer
130 views
Installing “Differences”-palette from AuthorTools
I am new to this feature of Mathematica.
In Mathematica 10.0, how do I load/use "AuthorTools"? I am particularly interested in installing the "Differences" palette
Thank you
2
votes
0answers
314 views
How to use Mathematica MathPDE Package? [closed]
I'm trying to use the Package MathPDE that is introduced here http://www.mathematica-journal.com/2011/12/mathpde-a-package-to-solve-pdes-by-finite-differences/.
Since I could not find anything about ...