Questions tagged [development]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
46 views

Tutorial notebook on GitHub [duplicate]

I am currently writing a Mathematica package containing several functions I developed in the last few years to perform computations in quantum physics. I am planning to put a preliminary version of ...
10
votes
2answers
243 views

How to provide latest paclet version

I've made a package available on github, which can be installed with ...
12
votes
0answers
163 views

Continuous integration (CI, software development) with Wolfram Language?

Continuous integration (in the software engineering sense) is a common method to ensure that the code in your repository works as it should after each commit. For example, you can run a set of ...
1
vote
0answers
53 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 ...
5
votes
1answer
101 views

How to enforce priority on custom directory over paclets default repository

As explained in $Path hijacked by PacletManager? loading packages from custom directories may not be so intuitive. Not to mention absolute lack of documentation of interaction between ...
10
votes
1answer
148 views

Attempts at backwards compatibility

I have written a package in Mathematica 11, and I would like to provide some backwards compatibility to earlier versions. An example is the function Echo. ...
8
votes
1answer
191 views

Robust packages installation and updating on Cloud

Questions: What is an idiomatic way to upload/install a paclet in own Wolfram Cloud account? What is an idiomatic way to update/overwrite existing paclet? It is not tough but: PacletManager works ...
22
votes
1answer
727 views

Live code templates

I enjoy coding in the FrontEnd (except it crashes and lookup across files does not exist), but I often miss 'hands on keyboard', customizable code templates. E.g. I often forget to wrap an option ...
11
votes
1answer
209 views

How can I automatically generate all the front-end settings for a function?

I mostly write my packages within the Mathematica FE, but when I develop I never really think all the usage messages, autocompletes, syntax info, and argx patterns that a well developed function would ...
15
votes
1answer
582 views

Building a GitBook with Mathematica

GitBook is a fun little website that will take Markdown source material and build a little book out of it. How can I use Mathematica to build a GitBook with a minimum of effort?
5
votes
1answer
61 views

Can we make preread replacements in an *.m* file before being run?

This the second question of (152743), the preamble of which is reproduced here: Those who don't have/prefer the front end of Mathematica will either use a plain ASCII editor to write a script in an <...
5
votes
1answer
57 views

Can we make new definitions for InputForm in packages?

Those who don't have/prefer the front end of Mathematica will either use a plain ASCII editor to write a script in an .m file or just use Mathematica directly from ...
11
votes
2answers
284 views

Bulletproofing packages against SetOptions of built-ins

Packages are (obviously) written in terms of built-in Mathematica functions. But many (if not, most) of these functions have options, like Expand, ...
11
votes
1answer
244 views

Self contained APIFunction. Collecting definitions

Bug fixed in V11.2 Previously dependencies collector failed to collect check if check was only mentioned in lhs: ...
12
votes
1answer
246 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 ...
6
votes
0answers
64 views

Keep stylesheet open after a notebook is closed

I find this behavior annoying: ...
24
votes
1answer
3k views

How to put Mathematica Notebooks and packages on Github?

In the current phase of the project I am working on I am developing a utility package which could easily be open-sourced and shared with the community IF there was an =easy= way to share a notebook / ...
6
votes
2answers
318 views

Write Unit Test with expected Message

Using Workbench, I would like to check if my function does emit a message under certain circumstances. How can I test this using an .mt file? I only know about the ...
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 ...
66
votes
3answers
2k views

How to distribute Mathematica packages as paclets?

Mathematica does have a nice package manager. Packages are called paclets, and they can be managed using the functions from the PacletManager` context. How can I ...
7
votes
0answers
80 views

Enabling “Update” button for installed packages

I found that if you navigate to the "Installed Add-Ons" page in the *Wolfram Documentation Center" accessed by following Help ▸ Wolfram Documentation ▸ Add-ons and Packages you will find a listing ...
24
votes
3answers
1k views

Package organization

When writing a Mathematica package Foo, with functions f1, f2 and f3, one can use the template: ...
3
votes
0answers
174 views

Version control in Wolfram Cloud using git

How do we integrate git or any other version control system with Wolfram Cloud? I could run a shell command with Run but in the Wolfram Cloud an error occurs saying Run::sandbox : The operation Run[...
73
votes
1answer
2k views

How to simplify writing LibraryLink code?

LibraryLink is an API for extending Mathematica through C or C++. It is very fast because it gives direct access to Mathematica's packed array data structure, without even needing to make a copy of ...
11
votes
2answers
194 views

Coding practice Notebooks vs. Packages: ClearAll?

I have a pretty robust workflow for developing in Notebooks. One element of that workflow is the reflexive habit of saying ClearAll just before a definition so ...
10
votes
0answers
1k views

Which IDE do you use for Mathematica development?

After more than a year I revisited the IntelliJIDEA plugin but that still seems to be 'just' an editor, of course there is the Mathematica Workbench but why are there so few improvements? Version 10. ...
15
votes
3answers
5k views

Is it possible to create iOS apps with Mathematica?

I am fairly new to Mathematica and don't have much experience with other programming languages, but I can already see that Mathematica and the Wolfram language are far easier to use than most others. ...
5
votes
0answers
167 views

Is there a package or canonical way for writing test harnesses in Mathematica?

I've written a complicated function foo.1 I'd now like to simplify this function's code, and later enhance it with more features. With each change, however, I'd ...
93
votes
4answers
8k views

What are the recommended settings for git when using with Mathematica projects?

Background I'm relatively new to git — currently overseeing an offshore .NET-based development project on GitHub within a private business account, but little experience beyond that. I'd like to set ...
90
votes
2answers
5k views

Open-source IntelliJ IDEA plugin to support Mathematica development

Although we already had a question asking for development alternatives to Wolfram Workbench, I want to ask a more specific question: One of the most advanced IDE's especially for Java programming ...
3
votes
1answer
134 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, ...
164
votes
1answer
29k views

Mathematica Minecraft

Some time ago I asked myself: with all these great graphics and interactive capabilities of Mathematica, what kinds of 3D games can be implemented in it? And the answer which came to mind is ...
23
votes
3answers
3k views

Best Practice to write ::usage for own package functions

I'm writing an own package with Mathematica, that I would like to make available for others. In order to do that (and for my own usage of the package), I would like to write ...
0
votes
2answers
173 views

How to avoid restart during development? [duplicate]

Possible Duplicate: How do I clear all user defined symbols? During package development things get messed up quite often. (especially when playing with notations) Is there a simple way to reset ...
25
votes
3answers
1k views

How to setup Team Development for a Mathematica project?

I am currently working solo on a project that consists of package files, munit tests, notebooks and .xls files. I use Wolfram Workbench as an IDE. I want to collaborate with others on this project. ...
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 ...
33
votes
0answers
3k views

Custom package development: Basic steps [duplicate]

Every once in a while, I write a generic function that I use quite often for months to come. However, package development in Mathematica is not very well documented from what I can tell, and I was not ...
120
votes
9answers
25k views

Creating Mathematica packages

I'm building a package to help me write packages and their documentation. In this post I explained how to make a package and its documentation. In the answer I provided I describe how to build a very ...