Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [packages]

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

0
votes
0answers
21 views

Problems with using the Ricci package

I think I have now managed to save the Ricci.m file, and also load the package on Mathematica. the instruction manual for the Ricci package is given here. When I enter Ricci.m, I get the following ...
2
votes
0answers
14 views

Failed to use a R package via Rlink on Windows

I need to import .ibw (Igor files.) into Mathematica. For this I used 1) to go in R via Rlink (OS windows), 2) to load the package IgorR 3) to install it and then to use it. Here is a script which ...
1
vote
0answers
33 views

Gauging community interest and feedback on packages [migrated]

I have developed a package that I think might be of general interest to a wide range of Mathematica users, and could lower the barrier to attracting new users. I am not certain that it is at the stage ...
0
votes
2answers
28 views

Downloading a package on a directory accessible to Mathematica

I am trying to download the Ricci.m file from this page. The instructions say You'll need to download the source file Ricci.m and save it in a directory accessible to Mathematica...Once you've ...
0
votes
1answer
34 views

Wrapped Association into a “structure”: how to define Equal[] and what are the good practices for package dev?

Using a nice answer https://mathematica.stackexchange.com/a/197936/42847 I got from a previous question I define: ...
2
votes
0answers
48 views

Best Practice to Manage Utility Functions

It is often the case sometimes we write some functions that turns out to be handy and we would like to reuse them later. My current solution is to keep them in a single notebook and copy them to every ...
2
votes
1answer
45 views

How do I make a dynamic nested menu with the MorUI package?

I hope you can help me. I want to make a nested dynamic menu and I used the package MoreUI made by Kuba as a reference Question. My problem is that I want to add tasks such as: ...
0
votes
1answer
83 views

Why do I have to run the package to make the function available?

I made the following package file : ...
1
vote
1answer
41 views

Context issues when using NDSolve and rule substitutions in a package [duplicate]

I have a .wl package and a demo .nb notebook. The package file is testPackage.wl and it ...
3
votes
1answer
69 views

Upgrade of package from 5.x to 11

I'm new to mathematica and I'm trying to upgrade TamarA package, because it shows wierd things. To be more precise in case of formulas which should result into fraction of some elements the resulting ...
1
vote
1answer
62 views

How to set HeavisideTheta[0] to 1 permanently

I always meet the HeavisideTheta[0] = 1 during my work, every time I need to use the function Replace[] to finish the job, which ...
3
votes
1answer
239 views

3D rigid body physics engine

Is there a package in Mathematica that will allow me to simulate collisions of 3d rigid bodies? If not, what known libraries could I use and how? For example, one problem I want to simulate is a ...
10
votes
4answers
531 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 ...
7
votes
1answer
118 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 ...
1
vote
0answers
79 views

TuGames package does not run

I downloaded the package TuGames from http://library.wolfram.com/infocenter/MathSource/5709/ to calculate Shapley Values in cooperative bargaining games. I got it to work earlier today but after ...
5
votes
1answer
59 views

How to reset a built-in symbol to its default definition?

I'm trying to add functionality to some of Mathematica's built-in functions in a package I'm building. I'm not trying to overwrite any functionality—just add it where it isn't already defined. I ...
3
votes
1answer
81 views

Running file with some extension [closed]

I want to run the Mathematica file with some extension, like '.m'. But, I don't know, how can I run the code. Please, guide me.
3
votes
1answer
58 views

How to install MaTeX on Mathematica online?

Can you please tell me the step-by-step procedure to install MaTeX on Mathematica Online platform?
8
votes
1answer
130 views

How to export functions from a package without declaring them at the beginning of the package?

When making a package, I find it a bit difficult to remember to add functions as public, and update the ::usage tag. Is there some neat trick to automatically ...
2
votes
1answer
118 views

Meson build system + C/C++ LibraryLink, help needed for portability check/fix (Windows &MacOs)

As a proof of concept I have created a github repository that shows how to: use the Meson build system to create a Mathematica package using LibraryLink functions The goal is to provide an easy to ...
1
vote
0answers
44 views

Change the posets300.m package since CProduct does not work

I want to build a Cartesian product of two posets (say chain[2] and chain[2]). I wrote ...
7
votes
0answers
41 views
8
votes
1answer
152 views

Maeder's articles about Logic Programming with Mathematica

I found by chance Maeder's public articles about Logic Programming with Mathematica at the following links: Logic Programming I: The Interpreter and Logic Programming II: Applications . The first ...
3
votes
1answer
39 views

How to set the value of a symbol in a package [duplicate]

I am writing a package like this: BeginPackage["HNotation2`"]; Begin["`Private`"]; HTransR=3; End[]; EndPackage[]; When I load the package, it seems that the ...
3
votes
2answers
57 views

Overlaying custom plotmarkers onto graphics primitives using Show

I have found the custom plotmarkers package developed by @Alexey Popkov extremely handy for makeing nice, accurate plots. However, I have run into a small issue that I am struggling to make sense of. ...
0
votes
0answers
63 views

How to load a package [duplicate]

I have a package: BeginPackage["HNotation`"]; soma::usage = "asdfa"; Begin["`Private`"]; soma[x_] := x + 1; End[]; EndPackage[]; I save the file with ".m" ...
6
votes
1answer
136 views

Symbol appears in multiple contexts when loading package

I'm building a Mathematica application "APPStestI" that contains three packages: SUBappsA.m, SUBappsB.m, SUBappsC.m and APPStestI.m. Where APPStestI.m is the main package; SUBappsA.m and SUBappsB.m ...
2
votes
0answers
58 views

Antiparticles in Feynrules Lagrangian

I am trying to implement a simple extension of the SM to Feynrules, generating the Lagrangian in a Mathematica notebook file. I am wondering about the following: Is there a way to explicitly use the ...
4
votes
1answer
52 views

Mathematica package to calculate the graph crossing number

I have been searching for a mathematica package that can calculate the graph Crossing number of a (small) given arbitrary graph (the graphdata of known graphs doesn't help me). Before I write my own ...
8
votes
1answer
99 views

Memoization and packages

I am working in a package on symmetric functions, that sometimes are quite expensive to compute. I use memoization extensively, but what is the correct approach for a package intended for the public ...
3
votes
2answers
129 views

How to make an option immutable

I am writing a package featuring several functions which depend on a large number of parameters. I'm trying to use Options so that I can define default values for ...
6
votes
2answers
195 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, ...
0
votes
1answer
52 views

How to enable loading packages dynamicly in Palette UI [duplicate]

Given a directory path and some .m files in it, I want load these packages files mannually outside notebooks, so I created Palette using code: ...
11
votes
1answer
180 views

Profiling a package

I have some code that I want to profile to see how much time each step takes, for instance: ...
2
votes
0answers
50 views

HypExp and HPL packages for hypergeometric functions: Evaluating a function HPL[{minus,plus},x]?

I am currently using the HypExp and HPL packages, which are useful for expanding hypergeometric functions in series around integer or half-integer values, as in common in dimensional regularization ...
2
votes
1answer
74 views

Loading MultivariateStatistics` changes colour of some multivariate distributions to red in notebook. Should I be worried?

I need to use the pdf of a Wishart distribution which is only defined in the package MultivariateStatistics`. However, after loading the package, some or all of the ...
3
votes
0answers
51 views

How to connect to ncbi databases for text search? MathIOmica authoring instructions now do not work [closed]

Mias's suplementary material in the notebook MmaBioinfo_Ch4_Databases contains a code for search the snp related to autism ...
2
votes
1answer
47 views

How to make indepent linking workspace when using NETLink?

I've created two packages file as CompnentALink.m CompnentBLink.m the functions InstallNET[] and ...
0
votes
1answer
92 views

Main function in my package doesn't work

I am new to Mathematica package development and I have been trying to write and run some simple packages to get a feel for it. I wrote the following package. My aim is to define a package which has ...
3
votes
0answers
20 views

Not too obsolete package extending the built-in functionality of Permutation Groups

Is there a modern package geared to permutation groups? With functions, for instance, for group-isomorphism (either w.r.t. permutation representation & w.r.t. group structure), direct, semidirect ...
0
votes
1answer
64 views

Problem with AddOn-Package Theorema

First of all, I'm fairly new to Mathematica and the Wolfram Environment in general. If this question has already been asked I'm sorry for the duplicate, but I haven't been able to track down the issue ...
0
votes
0answers
39 views

How to call a .nb notebook inside a another notebook [duplicate]

I generally use .m as the file for mathematica. However currently I have started using .nb interface and its looking good. However if I create separate .nb files and try to call/import them inside my ...
7
votes
0answers
68 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 ...
6
votes
1answer
63 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, ...
0
votes
1answer
78 views

Need a package to compute constraint structure

I want to compute constraint structure of some field theory and some gravitational field theory. By constraint structure I mean what is explained in the "Lectures on Quantum Mechanics" by P. A. M. ...
0
votes
0answers
176 views

Problem while installing a custom package (RGTC)

I am using "11.2.0 for Mac OS X x86 (64-bit) (September 11, 2017)" and I am trying to install the RGTC package, which can be found here. Download the package Then following the answer given by ...
3
votes
1answer
73 views

“Hyperlink” to notebook in the package folder

I wrote a package and when I import it I'd like it to print something like: "Bla bla bla. Click HERE for the example notebook." and the the list of functions defined in the package. I'd like HERE to ...
19
votes
1answer
354 views

What to be aware when using new-style package?

A new package format is described in this post. This format does not use BeginPackage and Begin. Instead, each package file is ...
5
votes
3answers
113 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 ...
5
votes
1answer
116 views

How do you set up private contexts shared between sub-packages?

I have a fairly large project that logically splits into several subunits, and for reasons of testing, documentation, and discoverability, I would like to make each subunit its own (sub-)package, like ...