Skip to main content
54 votes
Accepted

How to distribute Mathematica packages as paclets?

The following answer is not complete, but does give one possible solution. There's a lot more to learn about the paclet manager, so please contribute another answer if you can, or correct this answer ...
Szabolcs's user avatar
  • 236k
44 votes
Accepted

PacletInfo.m documentation project

This is a community project to produce useful documentation for PacletInfo.m. Feel free to edit and improve this answer. While the Paclet Manager is loaded from <...
30 votes

Automating documentation generation

DocGen Paclet Note: the main function is no longer GenerateRefPages but rather GenerateSymbolPages The paclet can be gotten by ...
b3m2a1's user avatar
  • 46.9k
27 votes

Can I build my own curated data function?

Update: Template Notebook I finally got around to finishing my curated data template notebook. You can see it here Currently it only supports single-type data paclets, but a template for multi-type ...
b3m2a1's user avatar
  • 46.9k
25 votes

How to distribute Mathematica packages as paclets?

Szabolcs answer shows how we can build a .paclet, but the PacletManager also contains the possibility to serve packages from an own site. As I realized after writing this, most of the information here ...
Albert Retey's user avatar
  • 23.6k
25 votes
Accepted

How to download "ResourceFunction" packages onto a notebook, so I can place it in a USB and access it on a different computer

Putting my comment into an answer, since it seems to have solved the question You can use ResourceFunction["PacletizeResourceFunction"] to package a ...
Lukas Lang's user avatar
  • 34.1k
23 votes
Accepted

What are the best resources for paclet development?

The Creating Paclets tutorial is currently (Jan. 2022) the primary piece of documentation available in the system that goes through the overall process, but does not cover documentation authoring in ...
Connor Gray's user avatar
22 votes
Accepted

How can I install packages distributed as .paclet files?

Update: The paclet-related functionality is documented in Mathematica 12.1. See PacletInstall. This answer is for people who are not interested in package ...
21 votes

How can I use GitHub as a paclet server?

First things first we set up the paclet server in the normal way as described here or here. Then all we need to do is pass the "raw.githubusercontent" version of that so that the resources themselves ...
b3m2a1's user avatar
  • 46.9k
21 votes

Creating a custom web API ServiceConnection

Template Notebook I sunk some time into making a good template notebook for integrating with all this. It lives here: https://github.com/b3m2a1/mathematica-BTools/blob/master/Resources/Templates/...
b3m2a1's user avatar
  • 46.9k
20 votes

Mathematica stuck in "running" for every calculation I attempt, kernel error

For a workaround, launch a standalone kernel and evaluate PacletSiteUpdate /@ PacletSites[] PacletUpdate["EntityFramework"] More detailed instructions can be ...
ilian's user avatar
  • 25.5k
20 votes

Paclets updating awareness and tracking

This posting is not a complete answer. Rather, it is a spelunking report concerning the kernel initialization sequence in version 11.0.1 as it relates to automatic paclet updating. In summary, every ...
WReach's user avatar
  • 69.1k
20 votes

Google Drive API connection: (or how can I build a service connection to an OAuth2 service?)

Code See this for the main issue that made it take so long to get this up If you just want the service connection you can get it like this: ...
b3m2a1's user avatar
  • 46.9k
16 votes
Accepted

How to remove a paclet downloaded from Wolfram Research Server?

Use PacletFind to find the installed versions, of the paclet, for exmaple: ...
Itai Seggev's user avatar
  • 14.2k
15 votes

Using DocumentationBuild and Transmogrify to generate web docs

tl;dr The Workbench packages are out-of-date for 11.1 and the whole system is not configured to easily work from Mathematica using a structure differing from the standard ...
b3m2a1's user avatar
  • 46.9k
14 votes

Best practices for using the Testing Framework

Testing notebooks or .wlt test files? I use both. I create the tests in a notebook, but keep a .wlt file for automated test runs. This is my workflow: I start by creating a new "Testing Notebook" ...
Jason B.'s user avatar
  • 68.9k
14 votes

Best practices for using the Testing Framework

After I have spent some time developing my package MeshTools and experimenting with testing workflows I am coming back to report my experience. I have put tests (...
Pinti's user avatar
  • 6,513
14 votes
Accepted

Install Function from "Wolfram Research Server" Offline

IntegerName depends on CountryData: ...
Arnoud Buzing's user avatar
12 votes

Package documentation separately from code

The trick here is to make a paclet for just your documentation that won't ever interfere with your main package. To do we'll assume we have a main paclet named ...
b3m2a1's user avatar
  • 46.9k
12 votes
Accepted

Best practices for using the Testing Framework

I think @Jason B.'s answer is a good workflow. Here is an alternative that I have adopted over the years. Most of my code I write in *.m / *.mt / *.wl / *.wlt files using IntelliJ Idea with the ...
JEM_Mosig's user avatar
  • 3,003
12 votes

How to share stylesheets (with a preview)?

Preview Notebooks / Extra Paclet Features I decided it was worth it to add some extra features to this thing as it's a good example of what paclets can do for you. First off, I added a little ...
b3m2a1's user avatar
  • 46.9k
11 votes

Hosting a curated data function / server in Google Drive

The trick here is that we'll host our paclets in Google Drive, but deploy a paclet server in the Wolfram Cloud that will route to the download links. In doing so we get the full 15GB of Google Drive ...
b3m2a1's user avatar
  • 46.9k
11 votes

Improving paclet formatting

Demonstration Here's what the end result looks like with my implementation: I included information that I personally find important and useful. Of course, this is a bit subjective, and there's a ...
Szabolcs's user avatar
  • 236k
10 votes
Accepted

How to obtain list of Installed Packages loadable by Get (<<)

There's nothing truly built in, but this is easy to roll if you know how to work with paclets. PacletInformation will return a ...
b3m2a1's user avatar
  • 46.9k
10 votes
Accepted

How to provide latest paclet version

Assuming all we want to use is GitHub, the best way does not exist but there are couple of alternatives used by folks around. Regardless of the final installation method it is safe to say that it is ...
Kuba's user avatar
  • 137k
10 votes
Accepted

How to Develop Paclets in Workbench Considering the Recent Changes in PacletInfo.wl Format and Supporting Functions?

A New Kind of Tutorial Since some time has passed now without getting any answers, I have experimented myself using ...
gwr's user avatar
  • 13.5k
9 votes

Installing a Paclet from GitHub (or other non-paclet server site)

Preamble Note that this is a special case. If the developer provides you with a paclet file already you can just install that by URL. See this for more This is all built into my PackageData.net ...
b3m2a1's user avatar
  • 46.9k
9 votes

How can I set up a local paclet server? (easy package sharing via shared DropBox)

So the trick here is to use the file:// URL protocol: First set up a paclet server in the standard way (see also my brief explanation here) Next we need to set up ...
b3m2a1's user avatar
  • 46.9k
9 votes

How to distribute Mathematica packages as paclets?

If you want to extend Albert Retey's answer to just use Wolfram tech you can set up your server in the cloud. I just set this up for myself as a proof-of-concept and it seems to work just fine. Step ...
b3m2a1's user avatar
  • 46.9k
9 votes
Accepted

Installing Paclets in Mathematica online?

Upload the file TensorSimplify.m to Base/Applications in your WolframCloud. Then ...
Chris K's user avatar
  • 20.3k

Only top scored, non community-wiki answers of a minimum length are eligible