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

How to find the package file that stores a certain symbol?

Is it possible to figure out in what file a certain packaged symbol lives in (assuming there is no shadowing between multiple identical symbol names)? I would like to have a function that if, given a ...
17
votes
3answers
4k views

How do I create a package from an existing notebook?

I have a notebook containing some functions, for example: f[x_] := 2*x g[x_] := x^2 Now I would like to convert this notebook to a package, ...
17
votes
1answer
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 ...
17
votes
2answers
394 views

When to name a variable with $

There are some symbols in the Wolfram Language that start with $, including $Abort, ...
17
votes
3answers
390 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 ...
17
votes
1answer
420 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 ...
17
votes
2answers
437 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 ...
17
votes
1answer
977 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'...
17
votes
1answer
674 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 ...
17
votes
0answers
226 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 ...
16
votes
5answers
7k 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 ...
16
votes
2answers
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 ...
16
votes
1answer
786 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.
16
votes
2answers
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 ...
16
votes
1answer
220 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. ...
16
votes
1answer
369 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 ...
16
votes
1answer
261 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 ...
15
votes
3answers
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 ...
15
votes
3answers
3k 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 ...
15
votes
1answer
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 ...
15
votes
1answer
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 ...
15
votes
1answer
376 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` (...
15
votes
1answer
316 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 ...
14
votes
2answers
697 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 ...
14
votes
4answers
2k views

Strategies for avoiding and handling shadowing

When dealing with namespaces in Mathematica (BeginPackage, $ContextPath ...) one is unavoidably confronted with the problem of ...
14
votes
1answer
408 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 ...
14
votes
1answer
339 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 ...
14
votes
2answers
2k 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[], ...
14
votes
1answer
1k 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 ...
14
votes
1answer
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 ...
14
votes
1answer
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 ...
13
votes
2answers
474 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 ...
13
votes
2answers
843 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 ...
13
votes
1answer
855 views

How to remove a paclet downloaded from Wolfram Research Server?

How can I remove a paclet that was automatically downloaded when I used a function for the first time (i.e. NetChain)? I believe the download was faulty, ...
13
votes
1answer
479 views

How to use Get on a folder

Documentation flaw introduced before 9.0 and persisting through V11.0.0 In the documentation for Get it says: If the file found by ...
13
votes
3answers
304 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 ...
13
votes
2answers
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
13
votes
1answer
621 views

SciDraw error loading package

I am running Ma 10.3. When I try to Get SciDraw package I get the following error: ...
13
votes
1answer
1k views

Installing packages on “Mathematica Online”

How can I install packages in Mathematica Online? In particular, how can I install the xAct package?
13
votes
1answer
502 views

Preserving indentation when creating a new line (when editing in a package)

Background: This is the third question in a row of questions about how to make editing packages in the front-end much more bearable (the other two are here and here). It seems that the front end is ...
13
votes
1answer
237 views

Profiling a package

I have some code that I want to profile to see how much time each step takes, for instance: ...
13
votes
1answer
2k views

Load a Mathematica Package via .Net code

I'm using C# to pass data to Mathematica and return graphs: ...
12
votes
3answers
371 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 ...
12
votes
3answers
775 views

Is there a package for Bayesian Linear Regression?

Is there a Mathematica package for Bayesian linear regression? Thanks
12
votes
2answers
8k views

Two x-axis with different units connected by function using CustomTicks

I am trying to make a plot of some photoluminescence data, where wavelength is on the x-axis, and intensity is on the y-axis. Also, I would like to have the graph boxed, with the upper x-axis having ...
12
votes
2answers
291 views

Is there a bug in AssociatePairs?

Bug introduced in 10.0 and fixed in 10.1.0 In Version 10, the GeneralUtilities package contain some useful functions. ...
12
votes
1answer
5k views

How do I create and use Mathematica packages?

I have created a package following the tutorial in Mathematica 8 virtual book. However this tutorial is quite, let's call it, "short". I have a TestPackage.m file: ...
12
votes
1answer
412 views

Why SciDraw can not handle the StreamPlot?

I find that the package SciDraw is suitable for preparing the figure in the thesis. When I use it to plot the line, it works well. For example ...
12
votes
2answers
283 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 ...
12
votes
1answer
244 views

Putting package documentation on Wolfram Cloud

So, I've finally released v1.0 of my EcoEvo package. Yay. Maybe I'll give an overview here soon. I'd also like to advertise to my colleagues, perhaps non-Mathematica users, who might use it. The ...

1
2
3 4 5
15