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

learn more… | top users | synonyms (1)

3
votes
1answer
248 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 ...
3
votes
2answers
221 views

Problem with Creating Mathematica Package

Currently I am working on creating the package on Mathematica version 9 on Windows 7. Here is my code as follows: ...
3
votes
2answers
214 views

How can Private functions be made completely opaque?

I want to make Private functions. From my point of view, being a Private function means that the function is not accessible from other packages. For that purpose I wrote the following code. But my ...
3
votes
1answer
204 views

How to determine all possible functions/symbols that can be accessed from a Mathematica installation?

I made a list of all symbols and functions that can be accessed from Mathematica and any included package that comes with it after standard installation. I thought I managed to get a list of ...
3
votes
1answer
321 views

Using header files

I have a piece of code I keep using in new notebooks over and over again and I have to copy and paste it in each new notebook. Problem arises: if I update the code in one file I have to manually do ...
3
votes
1answer
78 views

Using packages with symbols that have the same name

Let us suppose we have two packages: A and B. ...
3
votes
1answer
71 views

Package and imbricated compiled functions

I would like to build up a Mathematica package Pck which contains compiled functions. However when loading this library I obtain an error. When reduced to a minimal ...
3
votes
1answer
130 views

Using the variable in the MATLAB workspace using MATLink or any other packages

I have a program in MATLAB and after I run the program, I get some results in MATLAB's workspace. Now, I need to use these results in Mathematica. What I currently do is that I save the workspace as a ...
3
votes
1answer
94 views

How to exit a package gracefully in the middle?

How to exit a package in the middle, for example, ...
3
votes
3answers
114 views

Can I put subscripted parameter values into a package?

When defining packages, can I put parameter values alone or along with functions into a package in subscripted form? ...
3
votes
1answer
208 views

How to make a package for buttons

I am trying to make a Package for a piece of code though it's not needed here as it is very small. But my actual code here is a little bit different from that ...
3
votes
1answer
56 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: ...
3
votes
2answers
440 views

Package for representation of groups (group theory)

I wanted to know if there is a package which allows to compute representations of a group like the definition representation, adjoint and so on (for example the Pauli matrix for $SU(2)$ if I specify ...
3
votes
1answer
217 views

Creating event handler with ImplementJavaInterface inside a package

I am trying to make my Mathematica function to serve as an event handler for the events generated by a Java object. Specifically, I have a Java object that connects as a client to a server that ...
3
votes
1answer
562 views

Simple problem about shadow symbols in multi-contexts

When I'm tiding up my simple packages, shadow awlays comes out. Here is an example. Packages1 ...
3
votes
1answer
74 views

ParallelTable Works in Regular Notebook but Gives Error When Packaged

Consider the following: ...
3
votes
1answer
97 views

CycleIndex in v8

If I type ?CycleIndex I get Information::notfound: Symbol CycleIndex not found. >> If I then type ...
3
votes
1answer
127 views

Can a Mathematica Application be inside another Application?

The file structure of a simple MMA Application can have the form: MyApplication MyApplication.m SomeAuxiliarPack.m Kernel init.m Where ...
3
votes
2answers
119 views

ContextPath and autocompletion with subpackages

I'm developing a larger package which includes several subpackages. My problem is, that I can't introduce the symbols in the subpackages to the autocompletion by loading the main package, but by ...
3
votes
1answer
154 views

Mathematica Library

I created a Mathematica packagr and then I used the Needs function to add the library to my .nb file, but when use a function in my .nb file and the function is built in my library it comes up with ...
3
votes
1answer
147 views

Should I end all definitions from packages with semicolon?

I noticed that if I open a .m file in Mathematica and click on the Run Package button, all the ...
3
votes
1answer
166 views

Creation of name.m Package

I have a structure of folders. Main Directory( has init.m, and name.m files) Subfolders under Main directory library ( has the packages, pacakge1.m, package2.m) Data (some xcel sheets and other ...
3
votes
1answer
233 views

Package autoloading not working in CDF and Player Pro

I have made a package BeginPackage["top`"] t[x_]:=MessageDialog["This is top"] t1[x_]:=MessageDialog["This is top1"] EndPackage[] and used the code of this ...
3
votes
1answer
300 views

How do you get Weisstein’s Hyphenate package to run?

I've put Eric Weisstein's Hyphenate.m package in $UserBaseDirectory/Utilities; installed the requisite ...
3
votes
0answers
101 views

Mathematica GUIKit

Does anyone of you know if the GUIKit package is still under some development by Wolfram Research or is the current version 1.1.0 the last one. Does it make sense to make GUIs using this package in ...
3
votes
0answers
61 views

Needs, Get and << [duplicate]

I think I read somewhere that Needs is the recommended way to import dependencies, but I usually see << used in examples. ...
3
votes
0answers
108 views

Package for interacting with the AR.Drone by Todd Gayley?

Anyone in possesion of the package develop by Todd Gayley to interact with the AR.Drone? Haven't been able to find it anywhere... Referring to this video: ...
3
votes
0answers
123 views

Eureqa Client to connect to Mathematica under Windows

Does there exist a way to use Eureqa software with Mathematica under Windows? That is, is there a working client to connect to a Eureqa server?
3
votes
0answers
85 views

What's reliable way of finding declared but undefined functions/symbols in several interrelated packages?

I have many packages some of which use some of others. I have many symbols defined in them. Is there a reliable way of finding declared/exported but undefined functions/symbols in several ...
3
votes
0answers
86 views

Parsing subscripts when loading package files via the FrontEnd

I am working on some code, and have found it easier to use a Mathematica package because it is easier to run via command-line (lightweight) it allows for easier source versioning (Git), and it ...
2
votes
2answers
489 views

Packages problems on version 9 under OS X

Using Version 9 on OS X, I've run into some problems with creating packages and accessing them. I've done the following: wrote all the function definitions in a notebook and tested that they all ...
2
votes
1answer
234 views

Errors when using ParallelTable inside a package

I'm developing a package that contains a function that requires evaluation of an expensive Table, so I use ParallelTable ...
2
votes
2answers
167 views

How to unprotect GeneratingFunction

I'm trying to add custom downvalues for GeneratingFunction, and to do so I thought I just had to Unprotect it. However, that ...
2
votes
1answer
711 views

Installing Mathematica's package in Linux

I copied the package folder (ProPac, http://www.pages.drexel.edu/~hgk22/software/ProPac/ProPac.html) in $UserBaseDirectory/Applications in Linux mint. But when I ...
2
votes
1answer
86 views

What replaced ListWaveform?

My old Mathematica code used ListWaveform to produce a sound file from a table of amplitudes and frequencies; this seems to no longer exist. What replaced it?
2
votes
1answer
45 views

Missing definition of some parts of function?

I have: BeginPackage["Test1`"]; ClearAll[f]; f::usage = ""; Begin["`Private`"]; f[x_AA]:= 1; f[x_BB]:= 2; End[]; EndPackage[]; When later, on a notebook, after ...
2
votes
1answer
46 views

Removing commands used before loading package

Original Question: I used the convert command before loading the Units package. Although the convert command still works, Convert, Mile, and Feet are colored in red. What is the best way at this ...
2
votes
1answer
72 views

How to package a function for export?

I often post code for functions on Stack-Exchange, and then later find that they are unexecutable - that people can't use them because I mistakenly omitted some private functions or values that are ...
2
votes
1answer
174 views

How to find full names of all packages already on the $Path?

I'll show one specific example of what I am trying to do, I think it will explain things. On the default $Path there exist (in version 8) the following 4 packages ...
2
votes
2answers
78 views

Partial reload of definitions from package

In order to keep my code modular, I have defined some functions in "Foo.wl" file, which I source with Needs["Foo`"]. When I modify a single function in Foo, I quit ...
2
votes
1answer
62 views

Mathematica 8: EdgeList and CommunityStructureAssignment shadowing problem

I'm facing some issues when trying to use the CommunityStructureAssignment function from the GraphUtilities package in Mathematica 8. I'd like to output a ...
2
votes
1answer
100 views

Debugging the context of a Package

I am working on a package of functions that complement the NeuralNetworks` package that Wolfram provides. I am having a problem with the following code, which is ...
2
votes
2answers
104 views

What is the best way for an application to provide customisation options for the user?

Suppose that an application needs to be configured specifically for a user's system. e.g. the application needs to be told the location of certain data directories. What is the best way to provide ...
2
votes
1answer
61 views

How can I prevent a package from loading into a notebook run from Workbench?

I have a Workbench project in which I have created two packages: PackageA.m and PackageB.m. In the same project, there is a ...
2
votes
1answer
53 views

Factoring an ideal in a number field into prime ideals

I'd like to factor an ideal in a number field into prime ideals, exactly as in this example from the Sage documentation: ...
2
votes
1answer
71 views

How to overwrite a private symbol value temporarily?

I have a package file mypackage.m with BeginPackage["Foo`Bar`"] Begin["`Private`"] tmp=2; foo=2*tmp; myprogram[foo] ... End[] EndPackage[] The file is VCS ...
2
votes
1answer
110 views

How to update package?

when I use `<< PhysicalConstants`` I get the message like :General::obspkg: PhysicalConstants is outdated... see the Compatibility Guide for more infomation... The question is how to update it? ...
2
votes
1answer
100 views

AutoGeneratedPackage Formatting

If you do Ctrl+Shift+o you open an option inspector. And then you can enable ...
2
votes
1answer
80 views

Can I place a link to a package file (.m) in my Applications folder

I am developing a package and would like to be able to test it without having to copy the package file to my $UserBaseDirectory/Applications folder for each change, ...
2
votes
0answers
110 views

Is this a bug in NCAlgebra library?

In course of my work with NCAlgebra package for Mathematica, http://math.ucsd.edu/~ncalg/ , I encountered unexpected behavior of replacements. I am using ...