A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://reference.wolfram.com/language/workflow/CreateAPackageFile.html below:

Create a Package File—Wolfram Documentation

WOLFRAM Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

WolframConsulting.com

Put Wolfram Language definitions in a standalone file to be reused or shared.

Create a new package file

Choose File New Package/Script Wolfram Language Package (.wl) to create a new package file:

Add boilerplate package commands

Packages have a standard structure that follows this schema. Replace MyPackage with the name of your package:

Add definitions

Public definitions in a package are available for use when a package is loaded. Private definitions are used only internally in a package, not exposed externally.

Add both private and public definitions between Begin[`Private`] and End[].

Add usage messages for public definitions between BeginPackage[...] and Begin["`Private`"]:

Save the package

Choose File Save... and specify the package name:

Use the package

Load a package using << (Get):

After the package is loaded, you can use the public functions defined in it:

You can move a package that exists on your local machine to the Wolfram Cloud using CopyFile:

Create a new package file

Select File New Package to create a new package file:

Add boilerplate package commands

Packages have a standard structure that follows this schema. Replace MyPackage with the name of your package:

Add definitions

Public definitions in a package are available for use when a package is loaded. Private definitions are used only internally in a package, not exposed externally.

Add both private and public definitions between Begin[`Private`] and End[].

Add usage messages for public definitions between BeginPackage[...] and Begin["`Private`"]:

Name the package

Click (unnamed) to name the package:

Use the package

Load a package using << (Get). After the package is loaded, you can use the public functions defined in it:

Package files are only available for Wolfram|One and Mathematica Online. Please see their product pages for more information.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4