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
19 votes
2 answers
3k views

How to unload automatically loaded packages?

I know that this has been discussed here (How do I clear all user defined symbols?), but my case is somewhat different. How does one unload packages during runtime that were loaded with the start of ...
István Zachar's user avatar
19 votes
1 answer
924 views

How can I include functions from a package into a CDF file?

I am building an application which I would like to deploy as a CDF file, and I am struggling to make the CDF exports work correctly with functions pulled from a .m package file. What are good/best ...
Emilio Pisanty's user avatar
19 votes
2 answers
311 views

How to find out what files are touched when Get is called?

Is there a way to capture all package files touched whenever a package is called via Get, Needs, ...
István Zachar's user avatar
19 votes
1 answer
569 views

Sub-packages and auto-completion

Cross-posted on Wolfram Community I have a Mathematica application that consists of two sub-packages, corresponding to the contexts foo` (...
Szabolcs's user avatar
  • 235k
19 votes
1 answer
708 views

What are Package` context symbols for?

The Package` context contains the following: What is the use of these undocumented functions? I am looking for a concise description of the syntax and purpose of ...
Szabolcs's user avatar
  • 235k
18 votes
3 answers
591 views

What is the purpose of tags like :Name:, :Context:, etc. in packages?

I noticed that all of the packages that come with Mathematica start with a header that is in a standard format. (See e.g. the header of NIntegrateUtilities` at the ...
Szabolcs's user avatar
  • 235k
18 votes
4 answers
2k views

Strategies for avoiding and handling shadowing

When dealing with namespaces in Mathematica (BeginPackage, $ContextPath ...) one is unavoidably confronted with the problem of ...
Albert Retey's user avatar
  • 23.6k
18 votes
1 answer
1k 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 ...
Jess Riedel's user avatar
  • 1,526
18 votes
1 answer
2k views

Installing CRAN Packages

When I install RLink: Needs["RLink`"] InstallR[] then evaluate the command ...
Eric Brown's user avatar
  • 4,406
18 votes
2 answers
591 views

How to create search indices for custom documentation pages?

I have a package that uses custom documentation pages that are not generated with Wolfram Workbench. How can I create search indices for these pages? Requirements: Searching should work in ...
Szabolcs's user avatar
  • 235k
18 votes
1 answer
934 views

How to handle package dependencies?

When an application written in C++ depends on some libraries, the libraries are usually shipped together with the application. Two applications that depend on the same library will not share the same ...
Szabolcs's user avatar
  • 235k
18 votes
0 answers
313 views

How to design re-usable sub-modules?

There was a recent question asking about how to design modular packages: Declaring Package with dependencies in multiples files? This is an important issue for which unfortunately there is no One ...
Szabolcs's user avatar
  • 235k
17 votes
2 answers
2k views

How to work with Application Project files in Wolfram Workbench?

I have figured out that in a basic project I simply have to call the main package (m file) from the notebook using <<nameofmfile` and then the notebook ...
Lara Jordan's user avatar
17 votes
3 answers
2k views

How can I return private members of a Mathematica package as the output of package functions without the "PackageName`Private`" prefix?

I have created a Mathematica package that manipulates various types of input physics data into a common form of output data for further analysis. To make this process more efficient and manageable, I ...
AnInquiringMind's user avatar
17 votes
1 answer
1k views

MaTeX for Mathematica 9

There's a great package called MaTeX that @Szabolcs wrote which allows one to easily use LaTeX within Mathematica for things like axes labels. After hours trying out various other solutions I ...
Tom's user avatar
  • 3,416
17 votes
3 answers
1k views

Does anyone have experience with performing symbolic regression using Mathematica?

I understand that there is at least one Mathematica package, DataModeler commercially available for symbolic regression. I'm seeking any observations with this or any other similar tool. I'm ...
Steve's user avatar
  • 1,407
17 votes
2 answers
650 views

When to name a variable with $

There are some symbols in the Wolfram Language that start with $, including $Abort, ...
SumNeuron's user avatar
  • 5,422
17 votes
1 answer
1k views

Mathematica Syntax Coloring in GitHub README

GitHub doesn't auto-detect and color Mathematica code in its markdown. Can we make it do so? This may be trivial, but many README files don't seem to have it.
b3m2a1's user avatar
  • 46.9k
17 votes
3 answers
421 views

How do I put my packages into Dropbox

I don't want to necessarily put my packages in Mathematica's $UserBaseDirectory, which is on my local hard drive. Can I somehow tell Mathematica to look for ...
QuantumDot's user avatar
  • 19.6k
17 votes
1 answer
442 views

Making a Mathematica package manager?

I'd like to get a serious discussion started about a package manager. This has come up elsewhere, and many people have implemented their own solutions. It would be nice to have a standardized way to ...
mfvonh's user avatar
  • 8,460
17 votes
1 answer
2k views

Where to download the MathWorld package?

I was trying to run some notebook I downloaded from MathWorld, but lots of them need << MathWorld`Curves` I tried to google it , only to find this, but ...
tintin's user avatar
  • 739
17 votes
1 answer
1k views

Creating a R DataFrame like construct in Mathematica

I kept getting my data mixed up so I decided to see if I could construct a package adding a R DataFrame like construct to Mathematica. I managed to cobble something together that sort of works, but I'...
Mr Alpha's user avatar
  • 3,156
16 votes
5 answers
8k views

Plotting ErrorBars with a different style

I would like to plot the error bars of ErrorListPlot with a different style than the points. I know of ErrorBarFunction, but ...
Ajasja's user avatar
  • 13.6k
16 votes
1 answer
2k views

user defined functions, how to save them for future use?

I need certain user defined functions over and over. I was wondering how can I define and where and how to save them such that each time I start a notebook, these functions are available and need not ...
Per's user avatar
  • 161
16 votes
2 answers
3k views

Automatically load packages at startup

I'm a physics student and I try to simplify my day with Mathematica. Every time I use Mathematica I need Div[], Grad[], ...
Max Hacki's user avatar
  • 163
16 votes
1 answer
252 views

Persistent storage for packages

How can I implement persistent storage for packages/applications? For example, how can my package have settings which persist across sessions? I have implemented this more than once in the past. ...
Szabolcs's user avatar
  • 235k
16 votes
1 answer
404 views

Creating documentation for sub-packages in Workbench

I'd like to create proper documentation for a package of mine, and Workbench in principle provides the tools to do this. However, I've split my package into multiple sub-packages (because I found it ...
Teake Nutma's user avatar
  • 5,981
16 votes
1 answer
283 views

Can I emulate Wolfram's automatic package updating in my own packages?

It seems that some Wolfram-provided packages are smart enough to automatically check with the Wolfram servers, notice when a newer version is available, and download it, so that the user always has ...
ibeatty's user avatar
  • 2,533
15 votes
2 answers
744 views

Is there any harm or benefit to Removing unneeded private symbols in packages?

One of the things I noticed is that in typical medium-to-large sized packages, a huge number of symbols are created in the myPackage`Private context. You can see a ...
QuantumDot's user avatar
  • 19.6k
15 votes
3 answers
4k views

How do I compute sidereal time and JD?

There was once a package that provided a wide range of functions for computing astronomical information. This package now appears to be out of date; but as near as I can tell, many of the useful ...
orome's user avatar
  • 12.8k
15 votes
3 answers
346 views

Attaching the same message to several symbols

It is common in many packages, as well as system symbols, that the same message can be issued by several functions. Here's an example: One mechanism that can be used for this is to define the ...
Szabolcs's user avatar
  • 235k
15 votes
1 answer
449 views

Import package with correct symbol contexts

I am looking to do some automated analysis on packages, e.g. automatically check for common mistakes. Mathematica makes it relatively easy to manipulate code as data, and ...
Szabolcs's user avatar
  • 235k
15 votes
2 answers
324 views

Globally loading packages while using a CellGroup as the default context

I have a notebook I wish to set up where the sections are conceptually related to each other. But, I wish to isolate them from each other programmatically, so that they do not interfere with one ...
rcollyer's user avatar
  • 34k
15 votes
1 answer
2k views

How to use the Autoload directory?

According to the documentation, packages in $UserBaseDirectory/Autoload will load automatically on startup. I placed an .m file ...
Szabolcs's user avatar
  • 235k
15 votes
1 answer
374 views

Profiling a package

I have some code that I want to profile to see how much time each step takes, for instance: ...
Jansen's user avatar
  • 1,223
15 votes
1 answer
376 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 ...
Albert Retey's user avatar
  • 23.6k
15 votes
1 answer
2k views

Load a Mathematica Package via .Net code

I'm using C# to pass data to Mathematica and return graphs: ...
WolframFan's user avatar
  • 1,412
14 votes
3 answers
468 views

How to define a package without adding it to $ContextPath

How can you introduce a package, so that it is listed in $Packages, without adding it to $ContextPath? Note that this question ...
Joel Klein's user avatar
  • 5,225
14 votes
2 answers
505 views

Compile for deployment

Is there any way (other than the manual one) to grab all the functions a notebook uses from the different user-defined packages and putting everything into one file to deploy the code for e.g. CDF? I ...
István Zachar's user avatar
14 votes
2 answers
975 views

SciDraw error loading package

I am running Ma 10.3. When I try to Get SciDraw package I get the following error: ...
atapaka's user avatar
  • 3,874
14 votes
1 answer
468 views

Can Wolfram's Player Pro use proprietary packages?

A few entwined/related questions: Can Wolfram's Player Pro use proprietary packages? I have searched Wolfram's site pages on Player Pro and don't see anything that provides a clear answer to this ...
Jagra's user avatar
  • 14.3k
14 votes
2 answers
3k views

Game theory packages

Is there any game theory package around? I mean supporting functions which take a game in matrix form and tell you all about nash equilibra, best strategies, ect
magma's user avatar
  • 5,290
14 votes
1 answer
2k views

Installing packages on "Mathematica Online"

How can I install packages in Mathematica Online? In particular, how can I install the xAct package?
OTH's user avatar
  • 305
14 votes
1 answer
299 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 ...
Kuba's user avatar
  • 137k
14 votes
1 answer
714 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, ...
Gaius's user avatar
  • 565
14 votes
1 answer
1k views

Using a different R version with RLink

I wish to use a different version of R than what is provided by Mathematica 9. For example, I want to use the Macports version of R, where R_HOME is ...
Eric Brown's user avatar
  • 4,406
14 votes
1 answer
777 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 ...
Mirko Aveta's user avatar
  • 2,192
14 votes
1 answer
1k views

How to run an external program in parallel with a Mathematica package?

Under Mathematica 8 (Linux x84_64) I was able to run an external program in parallel from a Mathematica package. However this procedure breaks down under Mathematica 9. Within my Mathematica package ...
Holger I. Meinhardt's user avatar
13 votes
4 answers
1k 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 ...
sgdsgyhetwaraw's user avatar
13 votes
2 answers
969 views

FiniteFields package is very slow. Any fast substitute for Mathematica?

I want to compute the inverse of matrix, say with dimensions $100 \times 100$, defined over a large finite field extension such as $GF(2^{120})$. I am using the package FiniteFields, but Mathematica's ...
Piotr Semenov's user avatar

1
2
3 4 5
18