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
7
votes
2answers
155 views

Inserting symbols' definitions during read time of the code

Let's say we've got a package: ...
7
votes
3answers
290 views

Testing a package in Mathematica 9

I am in the process of writing a package, but my way of testing it just seems wrong and inefficient. Each time I edit the .m file, I save it, quit the kernel, call the package in a separate notebook ...
7
votes
1answer
674 views

How get Singular.m package to interact with Singular itself?

I've installed the package Singular.m by Kauers and Levandovskyy from http://www.risc.uni-linz.ac.at/research/combinat/software/Singular/ as well as the Singular ...
7
votes
1answer
207 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 ...
7
votes
2answers
161 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. ...
7
votes
1answer
216 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 ...
7
votes
1answer
318 views

What is contained in a GeneralUtilities package?

In Programmatic formatting for Mathematica code - possible? masterxilo proposed to use <<GeneralUtilities` then ...
7
votes
1answer
126 views

GitLink: Retrieve list of files which were changed in a commit

How can I retrieve the list of files that were changed in a commit using GitLink? I can open a repo like this: repo = GitOpen["~/Repos/GitLink"] Now I can get ...
7
votes
1answer
350 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
187 views

AutomaticUnits package in Mma 11

I have really come to like this package, and, no, the built-in units handling in newer versions of Mma isn't a match for it by a long, long stretch. With some minor editing following the author's ...
7
votes
1answer
110 views

Function defined in a package behaves differently from when defined in a notebook

On a Windows system I'm using the Rubi rule-based integration package by Albert Rich which defines function "Int" in addition to Mathematica's Integrate. In my ..\ProgramData\kernel\init.m I have: <...
7
votes
1answer
202 views

Documentation for undocumented packages

Ignoring the self-contradiction in the title, is there documentation for packages such as Algebra, which probably contains lots of useful functions? (The only one ...
7
votes
1answer
145 views

Recommendations about modifying usage of built-in symbols

In my package, I use some of the built-in Mathematica symbols in non-canonical ways. Right now, I use them as Options or ...
7
votes
1answer
479 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 ...
7
votes
2answers
2k views

Package Loading: How to get rid of Needs::nocont?

I am trying to create a documentated application inside FileNameJoin[{$UserBaseDirectory, "Applications"}] I obviously dont fully understand the concept of the ...
7
votes
1answer
99 views

Strategies for creating links to external systems

Often I find myself creating links to external systems, be it a converter from Mathematica to python, a link to Git/GitHub or to an electronic structure package. And I am far from the only one. I've ...
7
votes
0answers
86 views

How to set up own paclet server?

With the paclet management framework made public in v12.1, I am eager to automate package distribution and update via paclets over the net. Stephen Wolfram mentioned in this post about v12.1 that they ...
7
votes
0answers
75 views

How to distribute styles with packages?

I want to define some named styles with StyleData and StyleDefinitions that are either entirely new or inherit from default ...
7
votes
0answers
86 views

Exclude functions from auto-completion

Is there a way to exclude a function from auto-completion? Suppose that you are developing a package, and in the next version a function will be deprecated. It is better not to auto-complete it so ...
7
votes
0answers
80 views

Enabling “Update” button for installed packages

I found that if you navigate to the "Installed Add-Ons" page in the *Wolfram Documentation Center" accessed by following Help ▸ Wolfram Documentation ▸ Add-ons and Packages you will find a listing ...
7
votes
0answers
89 views

Multilingual code captions for user functions

Mathematica 11 features multilingual code captions for built-in symbols. How do I define code captions in different languages for my own functions which may go into a Mathematica application/package?
7
votes
0answers
506 views

Computing Ehrhart's polynomial for a convex polytope

Is there a Mathematica implementation for computing the Ehrhart polynomial of a convex polytope which is specified either by its vertices or by a set of inequalities? I am interested in knowing this ...
6
votes
2answers
277 views

Package MathWorld

I'm looking for MathWorld packages, but I can not find anywhere. I found an question that came very close but did not help me. I got lost on the site and did not find anything. I need to use the ...
6
votes
3answers
743 views

How to properly remove the CUDAResources paclet?

I have Mathematica 8.0.0.0 installed on my Mac, and while I tried to see what it could do with CUDA, it downloaded a large directory (~1 GB) named ...
6
votes
1answer
229 views

What is the reason that $zz^*$ is not written as $ |z|^2$ sometimes?

For a general (complex) number $z$ I sometimes get terms that explicitly writes (for instance) $$2zz^*+|z|^2. $$ I should add that these expressions come from long calculations involving packages (...
6
votes
1answer
8k views

How to load a custom mathematica package from a .m file?

I would like to load the package groebner50.m which is available through the website of David A. Cox. It's supposed to contain some useful tools for commutative algebra, but I haven't been able to get ...
6
votes
2answers
466 views

Loading custom notation on startup without showing the Notation palette

I was creating some custom notations using the Notation package and it works fine. I put it in my default personal package, and it loads fine on Mathematica's startup. To make it complete I need just ...
6
votes
2answers
3k views

Function to compute the probability of exactly one event occurring out of N independent events

Is there a built in function (or a function in one of the standard packages) that allows you to compute the probability of exactly one event occurring out of some known set of probabilities for N ...
6
votes
2answers
165 views

Unimport wolfram language package

In Wolfram Language, Import["file.wl"] can import external wolfram package, Is it reversible? Can I unimport some packages? In other means Unset all the ...
6
votes
1answer
129 views

What is the correct to have package A use package B in its private section without making B visible to the user?

V 12.1 on windows. I am loading pkg2, which in its Private section loads pkg1 in order to call one of its function. After ...
6
votes
2answers
283 views

Is the \begin{align} function available for the MaTeX package?

I would like to know if the MaTeX package from our colleague Szabolcs can align the calculation steps as possible by the code below: ...
6
votes
2answers
456 views

Use of Ito's lemma in ItosLemma.m (or any other method in Mathematica)

This is a follow-up question on this question: Use of Ito's lemma in ItoProcess My problem is to find some method how to use Ito's lemma in Mathematica. As an example: How can I apply Ito's ...
6
votes
1answer
182 views

Naming conflicts with Dummy variables in several packages conflicts

I'm using several packages in a notebook. In each packages there is functions defined with dummy variables. When I load the several packages in my session, i've got a warning message: ...
6
votes
2answers
321 views

Can I view a package as a regular notebook?

How can I open a package as a normal notebook, i.e. without the toolbars and formatting of the built-in .m file interface.
6
votes
2answers
238 views

Mathematica ExtraPackage

Where can I install the Wolfram ExtraPackages? Especially the "Notation`" package? I do not seem to have it by default (In the Utilities, I have only two documents, ...
6
votes
3answers
181 views

How to avoid running code when a script is imported as a package?

In Python, the boilerplate line if __name__ == "__main__": defines a code block that should be executed when the code is run as a script, but not when imported as a ...
6
votes
1answer
420 views

Is there a package to find ALL exact roots of a polynomial, if they exist?

There are polynomials with roots not expressible with radicals but expressible as trigonometric or other functions, for which Solve[] only returns ...
6
votes
1answer
368 views

On Reverting Code that Mma Switches to Raw Input Form Back to Standard Form

I experienced a similar issue to what is described in this post while editing formatted usage messages (that contained italics) in the declaration section of a package that I'm developing in the ...
6
votes
1answer
180 views

Could a package be composed of references?

Could a package be composed of references (e.g. usage messages)? Do the code for an induvidual function implemented in a package has to be physically in that package file where it is referenced (i.e. ...
6
votes
2answers
183 views

Does the operating system matter when using Encode[]?

I have a package I want to distribute. I wrote the package in Version 9 under a Mac OS X operating system. I want to Encode[] the package. The end user will ...
6
votes
1answer
198 views

How can I use the legacy version in TreePlot in Mathematica 12.0 and later?

In other places on StackExchange, I read: "In versions 12.0, TreePlot is changed substantially, and the legacy TreePlot is ...
6
votes
1answer
136 views

How to delay the definition of a function from the time of package initialization to when it is first called

I am writing a package where a couple defined functions take a very long time define at initialization time (because they are large CompiledFunctions). However ...
6
votes
1answer
413 views

What is the difference between Update, Run Package, Save and Install for packages?

I am building a package, using Mathematica 10.0.2.0. I notice in the displayed window for the package there are buttons labeled Update and Run Package; on the File menu, there is an item for Save; ...
6
votes
2answers
440 views

Find multiple solutions of a nonlinear ODE

I have a nonlinear ordinary differential equation with two parameters c and R in the form of: ...
6
votes
1answer
67 views

Loading IGraphM on a Remote Cluster

I am trying to load IGraphM on a remote cluster at a university. I can load the program, then install the package, which is successful I then run <<IGraphM, ...
6
votes
2answers
169 views

How to organise functions inside a package instead of the initialisation of a DynamicModule?

I want to know how to write clean code of a big DynamicModul for a complex GUI which should be deployed as a CDF. I want to split the dynamic module into several smaller DynamicModuls and Functions. ...
6
votes
1answer
561 views

Begin[“`Private`”] vs Module

So, if you have a package formatted like so: ...
6
votes
1answer
100 views

How to add frontend resources for using in package/paclets?

I have some thumbnails that I want to use inside my package, which need to be loaded with FEPrivate`FrontEndResource. AFAIK those assets have to be placed in .tr ...
6
votes
1answer
132 views

Prevent autocompletion for symbols in contexts other than “`Private`” [duplicate]

I've been working on a Mathematica package (call it QuantumDot) that has become huge. Right now, all the back-end helper functions are in context ...
6
votes
1answer
162 views

Where are examples of packages that are locked?

I wanted to see some packaged whose core functions are locked, but I couldn't find any. Is anyone protecting their code with the Locked and ...

1
3 4
5
6 7
15