Questions tagged [packages]

Questions on Mathematica packages, which are self-contained bundles of Mathematica code that add new functions and other functionality.

Filter by
Sorted by
Tagged with
12
votes
1answer
178 views

Is there a way to find out who is importing a package?

After calling some functions, if I look into $ContextPath, I can see that JLink` is in there. Is there a way to find out what ...
12
votes
1answer
246 views

Clean package update for API/FormFunctions on Wolfram Cloud

Cross posted on community.wolfram.com (new comments) TLDR There is a pool of kernels/sessions available for each user, you don't have control over the pool only over specific kernel you currently ...
12
votes
1answer
518 views

Package for fast spherical harmonic transform in Mathematica?

Mathematica's implementation of the Fast Fourier Transform is, naturally, much faster than computing the discrete transform yourself using Sum. The analog of the ...
12
votes
1answer
467 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, ...
11
votes
4answers
681 views

What is the accessibility of a package's `Private` context variables?

I've been reading up on how Mathematica handles contexts, $Context, $ContextPath, and a few of the tutorials they have on ...
11
votes
2answers
335 views

How to abbreviate context names?

It's convenient to abbreviate often-used function names, eg Dim = Dimension. Is it possible to abbreviate long context symbols, e.g. Combinatorica when the context ...
11
votes
3answers
1k views

How to protect functions in a Mathematica Package?

I'm writing a Mathematica Package with many functions, but only two can be seen/public. I have: ...
11
votes
2answers
284 views

Bulletproofing packages against SetOptions of built-ins

Packages are (obviously) written in terms of built-in Mathematica functions. But many (if not, most) of these functions have options, like Expand, ...
11
votes
3answers
2k views

Can't load LevelScheme package

I am trying to use Mark Caprio's LevelScheme package for customizing graphics, but I haven't been able to get Mathematica to load the package using Get or ...
11
votes
1answer
855 views

How to make Mathematica automatically find packages in subfolders of the Applications directory?

Consider our package awesomepackage.m. If I put this file in FileNameJoin@{$UserBaseDirectory, "Applications"} I can easily ...
11
votes
1answer
243 views

Future-proofing access to packed array tools

Most of the Mathematica users beyond beginner level will be aware of the phenomenon of Packed Arrays. The user-accessible functions related to packed arrays live in the ...
11
votes
1answer
320 views

A tour of AWSLink?

Seems like there are a lot of useful functions in this undocumented package AWSLink: Any developers on here that can demo it a bit?
11
votes
1answer
209 views

How can I automatically generate all the front-end settings for a function?

I mostly write my packages within the Mathematica FE, but when I develop I never really think all the usage messages, autocompletes, syntax info, and argx patterns that a well developed function would ...
11
votes
2answers
297 views

Inconsistent behavior of undocumented Encode->Import->StringToStream->Get on password-locked stream

Let's save a definition. Encode it with password/key and Get it again. We will not use Get ...
11
votes
2answers
154 views

Package automated way of ReadProtecting all symbols

My template for building packages has, at the end, the following expression that automatically ReadProtects all symbols defined in my ...
11
votes
1answer
203 views

Package documentation separately from code

Mathematica documentation is heavy duty stuff. Of the 7.75GB my Mac says Mathematica 11.3 takes up, 5.46 of that is documentation. So when I write my own packages I don't want to do what WRI did and ...
11
votes
1answer
237 views

Predictive code completion and custom functions in contexts

Suppose I work for organisation PQR, and have been developing a suite of packages, PQRUtilities, PQRVisualization etc, all of ...
11
votes
1answer
410 views

Importing parts of Packages

Some programming languages offer the possibility of importing a single function from a library, as in from x import y I'm looking to import only one function (<...
11
votes
2answers
194 views

Coding practice Notebooks vs. Packages: ClearAll?

I have a pretty robust workflow for developing in Notebooks. One element of that workflow is the reflexive habit of saying ClearAll just before a definition so ...
11
votes
2answers
503 views

Show StyleSheets and Palettes from custom directory in Mathematica's Menu

I'm working on a package that needs to be installed into an arbitrary, "non standard" path (i.e., not $BaseDirectory or ...
11
votes
1answer
174 views

Install paclets into $BaseDirectory on multi-user system

PacletInstall will install paclets into the $UserBaseDirectory by default. How can we install them in ...
11
votes
2answers
824 views

Support for Multidimensional Scaling (MDS)?

Does Mathematica support MDS? Or, are there any libraries that support it? Basically, I have points and a distance function defined between them, and I want to plot them in 2D space, trying to ...
11
votes
2answers
576 views

Automatic AutoIndent while editing a Package (.wl)

The author of this question is interested in personally handling the code indentation and having the package editor, built-in in Mathematica 2012, preserve the manually chosen indentation level from ...
11
votes
1answer
118 views

BugTracker in Mathematica paclet

I've been dealing with bugs in a very ad hoc fashion, mostly hitting them as they come or trying to write a note in my code to deal with them. As my codebase has broken the 50000 loc mark I find it's ...
11
votes
1answer
123 views

When is the output of examples in function documentation rasterized?

Upon building documentation in Workbench, Workbench sometimes converts the output of examples on function pages into rasterized images, and sometimes not. Does anybody know what controls this behavior?...
11
votes
1answer
99 views

Precedence of cell group tokens over package's expressions

Bug introduced in V10.4 or earlier and persisting through V11.3 [CASE:4072996] ...
11
votes
0answers
283 views

Mathematica package for explicit matrix representations of group generators?

While there are several packages that are capable of working with weights and roots (for example LieArt), I couldn't find any package that spits out explicit matrices for the generators, for example ...
10
votes
2answers
639 views

Using Terminal` (ASCII plots) in Wolfram 12

I was interested in exploiting the Terminal` package, as demonstrated in this post, to show some ASCII plots straight through the terminal of my Raspberry Pi Model 3 B+. However, it doesn't seem that ...
10
votes
2answers
1k views

Is there any robotics package for Mathematica?

Is there any package for Mathematica that deals with robotics and their application?
10
votes
4answers
2k views

Numerical integration of a numeric data available as a nested list

I have some numerical data in the form of a list with the following structure: {...{x,y,z},...} defining a surface z=z(x,y) in a 3D space (x,y,z). The data came from a simulation, and I am post-...
10
votes
1answer
566 views

Possible Bug of loading Package @ Mathematica 10.1

When I open mathematica, there will pop-up some messages where << package` is in the following file ...
10
votes
2answers
847 views

Why is JLink loaded every time I start Mathematica?

When I start a Mathematica 8 session (either command line or with the notebook front end), I notice that there are several packages that have already been loaded for me (using ...
10
votes
2answers
243 views

How to provide latest paclet version

I've made a package available on github, which can be installed with ...
10
votes
2answers
237 views

Is there a way to revert to the built-in function after overwritting it using Unprotect

When using Unprotect, we can overwrite a functions definition: Unprotect[Sqrt] Sqrt[x_]="blahblah" Protect[Sqrt] Once this is done, can we revert to the built-in ...
10
votes
1answer
148 views

Attempts at backwards compatibility

I have written a package in Mathematica 11, and I would like to provide some backwards compatibility to earlier versions. An example is the function Echo. ...
10
votes
2answers
1k views

Non-commutative algebra (NCAlgebra): How to properly SetCommutingOperators

I am starting to work with non-commutative algebra in Mathematica and had a look at the NCAlgebra package. I installed it and can use its functions. However, what I am struggling with is the ...
10
votes
2answers
207 views

Why a function returns two different values if copied into a Notebook or imported with Get from a Wolfram Mathematica Package?

I have some Mathematica code that shows a behaviour I really cannot understand. The code only contains a bunch of function definitions. If I paste it in the Notebook Front End and I evaluate it, I ...
10
votes
2answers
2k views

Evaluate notebook from other notebook

I have a notebook ("notebook 1") which in the beginning sets some parameters, does something depending on their value and saves the result to a file, say: ...
10
votes
1answer
317 views

What's the goal of the Macros` package?

I see in the Mathematica install a Macros` package. In windows the paths is for example: ...
10
votes
2answers
532 views

ParallelTable behaves differently when it is run inside a package

I've been butting my head against some very weird behaviour by ParallelTable, and its interaction with packages, over the past few weeks, and making relatively ...
10
votes
1answer
777 views

Lie algebras packages (with E6, F4 & alii … included)

I am looking for an add-on that deals seriously with computations inside exceptional Lie algebras (and obviously classical ones ...): I want at least all standard basic data concerning them & ...
10
votes
1answer
1k views

Looking for a package regarding Schur Polynomials and Kostka numbers

I'm currently looking for any Mathematica package that involves Schur polynomials and/or Kostka numbers. More generally, I'd be happy with anything that expands on symmetric polynomials in general. ...
10
votes
1answer
1k views

How to properly DumpSave & Get Global`s symbols inside packages while not touching Global context?

For efficiency reasons I prefer to use DumpSave instead of Save. For ease of access I prefer to save symbols in ...
10
votes
1answer
130 views

How to ensure that a package is always loaded on startup, even in parallel kernels?

Is there a robust way to ensure that a package is always loaded on startup, even in parallel kernels? Parallel kernels do not read Kernel/init.m.
10
votes
2answers
4k views

Perturbation theory in general relativity using xAct

I'm trying to use the xAct Mathematica package for manipulating tensors, and I'd like to plug in a metric into the perturbation equations to first order in general relativity, and have everything ...
10
votes
1answer
349 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 ...
10
votes
1answer
276 views

What is the purpose of Dump contexts?

Motivation I've been trolling through some internal code, trying to glean design practices WRI developers employ when extending Mathematica using top-level code. During my ...
10
votes
1answer
619 views

Mathematica File Organization

Last year I asked how to integrate notebooks to the documentation center in stackoverflow. Back then I was only interested in seeing those notebook and being able to search for them. Unfortunately, it ...
10
votes
0answers
131 views

How to interact with Amazon S3 using Mathematica?

Unfortunately Mathematica 12.1 does not have a native way of handling S3 files, the S3 functions were removed from the experimental AWSLink package. Someone know where can I download it, or some ...
10
votes
0answers
282 views

The introduction for Context in Wagner's book is out of date? [duplicate]

In Section 8.1.1 (P230 of the book, P249 of the PDF) of Wagner's book, the following example is shown: x = 5; temp`x = 6; Begin["temp`"]; {x, Global`x} The ...

1 2
3
4 5
15