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
0 votes
0 answers
30 views

Derivatives in the SpinWeightedSpheroidalHarmonics package

Hello I'm using the SpinWeightedSpheroidalHarmonics package from the Black Hole Perturbation Toolkit . This package includes the SpinWeightedSphericalHarmonicY, ...
Nitaa a's user avatar
  • 612
1 vote
1 answer
57 views

Variables in a Package

If I do this: func1[x_List] := Apply[Plus, x]; func2[x_List] := Apply[Plus, x^2]; func3[x_List, y_List] := Map[(fun1[x] # - fun2[x] #^2) &, y]; ...
user85407's user avatar
0 votes
0 answers
42 views

MermaidJS command not working from the paclet

I have installed the mermaid command line package and added it to the environment variable Path and it is accessible from the command line: But the following ...
user13892's user avatar
  • 9,043
1 vote
0 answers
35 views

Autocomplete for package in notebook with context "Unique To This Notebook"

I have the setting that my notebooks their context is unique for each notebook to avoid accidental lingering definitions. I really need this because I'm often distracted and e.g. overwrite files when ...
Gert's user avatar
  • 1,460
0 votes
0 answers
21 views

Insert LineLegend outside FigurePanel in SciDraw

I would like to put LineLegend outside of FigurePanel in Multipanel view created in package <...
Moonwalk's user avatar
  • 631
3 votes
1 answer
151 views

What are some Mathematica packages used for general relativity?

Could you suggest any Mathematica packages that are used for General relativity calculations? Id like to write code to solve the Schwarzchild Lagrangian equation.
Rishabh sharma's user avatar
1 vote
1 answer
92 views

Is there any Mathematica API for Z3?

Z3 has bindings for various programming languages, e.g., C, C++, Java, Python, and so on. Are there any for Mathematica? Or how to implement one?
hengxin's user avatar
  • 840
0 votes
0 answers
25 views

Unable to plot quasinormal modes using the QNMspectral package

I am trying to follow the advice provided in this paper by Aron Jansen to calculate the Quasinormal modes of a Dyonic AdS black hole (see Sec 4. of the paper) for which I use his package QNMspectral. ...
codebpr's user avatar
  • 899
2 votes
1 answer
53 views

KnotTheory` Passing PD Encoding of a Knot Diagram to Kh

I have a bunch of knot diagrams I would like to use the Kh function in KnotTheory to compute the Khovanov homology for. Almost ...
gdd's user avatar
  • 133
2 votes
2 answers
105 views

Avoid context mark in Plot labels in package

Minimal example: ...
LittleCat1's user avatar
1 vote
0 answers
82 views

How to output TeX with FeynArts?

I've recently installed FeynArts since I can use mathematica to generate topologies and it comes with a set of commands to make diagrams in LaTeX. However, nowhere in the manual can I find a command ...
Guy's user avatar
  • 285
4 votes
0 answers
55 views

What is the most convenient way to organize dependencies from paclets?

Do you have any ideas on how to most conveniently and easily organize package dependencies for Wolfram Language projects. I would like to have something like a list of packages in projects for .Net ...
Kirill Belov's user avatar
4 votes
0 answers
46 views

Viewing your own documentation

I am currently making a paclet, writing documentation for my package. When writing documentation with the Documentation tools, it is displayed in an ``unfinished way". How would it be possible to ...
Mstislav Keldysh's user avatar
0 votes
0 answers
48 views

How to install AceFEM in MacOS?

I downloaded the Evaluation/student version and ran Install.nb according to the official installation instructions^1, it returned some errors as follows. Cannot load installation package. Problematic ...
lumw's user avatar
  • 583
2 votes
0 answers
89 views

How to obtain documentation on functions inside some of the packages that are automatically loaded by Mathematica?

Mathematica comes with lots of useful functions which seems not to be documented. At least I do not know how to find the API documentation to learn more about these functions and how to use them. <...
Nasser's user avatar
  • 135k
2 votes
0 answers
33 views

Why is a blank auto-magically added to an option value of a function in the WL file of a paclet?

This is an observation I made during the course of writing a Paclet. The following is an example of a function which happens to use a function from the IGraphM package, whose use is affected by the ...
Hans Sieburg's user avatar
0 votes
0 answers
30 views

Coefficients which depend on summation index for a Hamiltonian in sneg

I would like to perform some manipulations involving a pretty generic Hamiltonian of the form $$ \hat{\mathcal H}=\sum\limits_{k,k^\prime}V_{k,k^\prime}\hat a_k^\dagger\hat a_{k^\prime} $$ (where $V_{...
HiveFive's user avatar
1 vote
1 answer
115 views

Legacy Finance package

There used to be an old package Finance which contained useful functionality for converting between different interest rate representations, ...
user13892's user avatar
  • 9,043
0 votes
0 answers
58 views

Unable to use a function from Get with Encode

I am trying to create a proprietary function as discussed in this link: How to distribute proprietary Mathematica code So I create a function and dump it into a file ...
IntroductionToProbability's user avatar
1 vote
1 answer
46 views

Load package from notebook directory [closed]

How to import a file in the same directory as the current notebook? I have tried Get@FileNameJoin@{NotebookDirectory[], "myPackage.wl"} but get Get::...
Cheng Tao's user avatar
  • 151
1 vote
0 answers
52 views

Loading a user package when connected to the internet is 4x slower as when not

I have a user-written package (600kB), which I load the standard way: <<MyPack.m or Get["MyPack.m"] When I am connected to the internet, this takes 18 seconds to load; while when I ...
Stefan Gillessen's user avatar
8 votes
1 answer
123 views

Structure of package with multiple sub-packages

Suppose I have a package with many functions, and I want to divide this in several sub-packages, so that public functions can be used by user as is and also sub-package may depend on functions of ...
LittleCat1's user avatar
0 votes
0 answers
57 views

Controlling my Drone

I have the ambitious plan to paint a wall using a drone. And I would like to do that with Wolfram mathematica. Does anyone have experience flying a drone with their laptop? Is it possible to control ...
Michiel van Mens's user avatar
1 vote
0 answers
94 views

Tracing the phases (i.e. the minima) of a potential

Is there a Mathematica package to trace the minima of a potential as a function of some parameter, returning its phase structure? Working with particle physics models (in the context of cosmology and ...
Finshky's user avatar
  • 11
0 votes
1 answer
64 views

Problem with functions defined in Module in mathematica package

Might be very naive; I am trying for the first time to develop a Mathematica package as shown below. The intended usage is that the user will load the package, specify the input functions 'Model' and '...
madmiKe's user avatar
3 votes
1 answer
50 views

Keep Global` context definitions as the default when shadowing occurs

According to https://reference.wolfram.com/language/workflow/HandleShadowingOfSymbolNames.html when a symbol appears in multiple contexts the one loaded (last?) gets precedence in that that context ...
Kvothe's user avatar
  • 4,137
0 votes
1 answer
53 views

Association does not work in package environment

I'm trying to be sneaky with a function and try to have an expression stored as a string (unevaluated) until a desired moment when it will be converted from a string to an expression and then have it ...
alex's user avatar
  • 1,396
4 votes
0 answers
161 views

Basic and advanced topics on mathematica packages

I am interested in understanding what is modernly (2023) considered a good practice in writing packages in mma. There are already many beautiful SE posts when it comes to packages, but they are ...
alex's user avatar
  • 1,396
0 votes
0 answers
62 views

Some typical symbolic mathematica code in python with the help of Wolfram Client Library for Python

I have downloaded wolfram library in my vs code and ran few common seeing Wolfram Client Library for Python e.g: ...
Ri-Li's user avatar
  • 101
1 vote
2 answers
62 views

how to move package from FileNameJoin[{$UserBaseDirectory, "Applications"}] to another location/disk and have kernel/init.m work as before?

After spending more than 1 hr on this, and looking at many questions, I give up as I am not able to figure a solution. I have my current package in the standard location given by ...
Nasser's user avatar
  • 135k
1 vote
0 answers
91 views

Can no longer load Developer package after upgrading to 13.2 from 13.1

Needs["Developer`"] returns $Failed with message Get::noopen cannot open Developer...
RobertNathaniel's user avatar
4 votes
0 answers
79 views

Python-like virtual environment for Mathematica?

Is there a way to control the versions of dependencies (packages) of Mathematica code, similar to virtual environments in Python (conda or venv), in the interests of reproducibility?
felix's user avatar
  • 549
4 votes
1 answer
71 views

problem using package to verify solution of ode with Association, Naming scope/context handling [duplicate]

I learning how to use packages. I found a big problem. Here is description of the problem is, then a MWE is given. This small package takes in an ode and ...
Nasser's user avatar
  • 135k
4 votes
2 answers
153 views

How to use OOP when the object is inside a Mathematica package?

I learned how to use OOP in Mathematica as shown by Leonid Shifrin (and others in this forum over the years). It works well, until I moved the module that represents the object to inside a package, ...
Nasser's user avatar
  • 135k
3 votes
1 answer
166 views

How to load a package? [closed]

I am new to github and loading github pacakges on Mathematica. I'm trying to follow examples from here. I used the PacletDirectoryLoad to load the packge from github but I get the following error. Any ...
grading's user avatar
  • 251
0 votes
0 answers
32 views

How to make a GUI to analyse teh imported data background of mathematica and one see output only at the interface

I have a script in mathematica to analyse a dataset. The process is as follows: I have imported my datafiles from the PC. I perform some mathematical analysis to extract some parameters and plot the ...
P Pyne's user avatar
  • 411
2 votes
1 answer
83 views

Wolfram Language Paclet Repository minimum version

I'm thinking of moving my EcoEvo package to the Wolfram Language Paclet Repository. This page says that Mathematica v13.0 is required for development, but I'm interested in the minimum version for ...
Chris K's user avatar
  • 19.4k
1 vote
2 answers
132 views

Is there a fast method of clearing symbols in the sub-contexts named by other symbols?

When writing packages I met the following problem. The way I name helper functions is like ...
Lacia's user avatar
  • 2,183
1 vote
0 answers
59 views

Is there a way which allows getting the code of commands from contributed packages? [closed]

I guess there is some simple way for getting the code of commands from contributed packages. Is there a specific command for that?
florin's user avatar
  • 1,582
1 vote
2 answers
477 views

Code for Tensor decomposition

I would like to know if there is a package or some MMA code to perform tensor decomposition as e.g. defined in a paper by Robeva "Orthogonal decomposition of symmetric tensors" or some ...
granular bastard's user avatar
3 votes
2 answers
222 views

The problem with "Symbol appears in multiple contexts" when loading package with same function name in subpackages

There is a similar question about this, 8 years ago!, but the answer there does not really give what to do. The answer just says yes one can use same function name in different packages but has use ...
Nasser's user avatar
  • 135k
2 votes
2 answers
149 views

'Update' and how to use variables to define patterns in functions' arguments...?

This seems like an obvious issue that I have nevertheless never encountered before. In a package, I want to use a variable to define a pattern that is used in the definition of some functions. However ...
berniethejet's user avatar
  • 1,407
5 votes
0 answers
60 views

Dedekind Zeta Function in Mathematica (at least for quadratic number field)

Does there exist some way to use Mathematica to compute the Dedekind Zeta function for an arbitrary algebraic number field? Or does there exist some package to do this? I am actually only interested ...
Mike Battaglia's user avatar
1 vote
0 answers
91 views

Error message installing Ricci

I just started using Mathematica. With the goal of solving a Loop integrals over a scalar gravity interaction. For the tensor calculus necessary i wanted to use, Ricci. https://sites.math.washington....
Faktor 2's user avatar
1 vote
1 answer
122 views

Updating a built-in function in Mathematica

I am using Mathematica 10.2 and would like to know how to update a built-in function. For example, I am trying to utilise the ScalingFunctions and ...
Huizar Wilson's user avatar
0 votes
0 answers
48 views

How to prevent displaying sub and overscript as plain strings in .wl files?

Problem: String with subscripts and overscripts are formatted as plain text after saving, closing, and reopening the document. It makes it hard to edit function usage because text become unreadable if ...
user45937's user avatar
  • 1,281
2 votes
1 answer
121 views

Unwanted fill color in David Park's Presentations package plots

The Presentations package by David Park allows plotting of complex curves and other objects defined in terms of complex numbers. A free version of the package, but without any documentation, is ...
murray's user avatar
  • 11.7k
3 votes
2 answers
105 views

Unable to use KnotTheory

I've installed the KnotTheory package, following the instructions here. But when I try to use it I get this error: ...
32the67's user avatar
  • 31
4 votes
0 answers
86 views

How to make a package of notations using the notation package

Alternative question: how to postfixify prefix operators like @, /@, @@ I would like to make a package of notations using the notation package. I want to make postfix notations for common prefix ...
userrandrand's user avatar
  • 5,637
10 votes
1 answer
169 views

How can I gracefully stop loading a package based on Mathematica version number?

I recently shared some work with a colleague and realized that his having v12 caused issues, as I used some new-to-13 functions. How can I put a requirement for a minimum version into my package? Here'...
evanb's user avatar
  • 5,864

1
2 3 4 5
17