Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/b3m2a1/mathematica-tools

One-off tools and packages
https://github.com/b3m2a1/mathematica-tools

mathematica

Last synced: 3 months ago
JSON representation

One-off tools and packages

Awesome Lists containing this project

README

        

# Mathematica Tools

This is a collection of basic Mathematica tools, generally implemented as one-off packages.

## NotebookTabbing

This is a package that provides a tabbed notebook interface. Load it like so:

```(*mathematica*)
Get["https://raw.githubusercontent.com/b3m2a1/mathematica-tools/master/NotebookTabbing.wl"]
```

Here’s a sample usage:

```(*mathematica*)
test1=CreateDocument["Input"];
SetDockedTabs[test1,
Table[i->i,{i,3}]
];
```

![title-8919251785266428182](project/img/title-8919251785266428182.png)

An example can be found in [Tabbing Example.nb](Tabbing Example.nb)

## Paclet Installation

This is functionality developed to put in my [PackageData.net Service Connection](https://www.wolframcloud.com/objects/b3m2a1.paclets/PacletServer/serviceconnectionpackagedata.html) . It provides auto-installation of packages, especially from GitHub or the Wolfram Library Archive.

Load it like so:

```(*mathematica*)
Get["https://raw.githubusercontent.com/b3m2a1/mathematica-tools/master/PackageDataPacletInstall.m"]
```

Then use it like so:

```(*mathematica*)
PDInstallPaclet["https://github.com/szhorvat/MaTeX"]
```

(*Out:*)

![title-4907962479876499562](project/img/title-4907962479876499562.png)

## Block Builder

This is a little block-programming interface, first introduced in this [StackExchange answer](https://mathematica.stackexchange.com/a/154868/38205) . Load it like so:

```(*mathematica*)
Get["https://raw.githubusercontent.com/b3m2a1/mathematica-tools/master/BlockBuilder.m"]
```

And use it like this

```(*mathematica*)
BlockBuilder[]
```

![title-7464017383694232051](project/img/title-7464017383694232051.png)

## File Browser

This is a file browser, built kinda like the Finder on a Mac computer. A more sophisticated version is in BTools. Load it like so:

```(*mathematica*)
Get["https://raw.githubusercontent.com/b3m2a1/mathematica-tools/master/FileBrowser.wl"]
```

You can use it like so:

```(*mathematica*)
FileBrowser[Directory[]];
(*Loads a sidebar pre-populated with $HomeDirectory and friends*)
FileBrowser[Directory[],
Function->Print
];
(*Prints files instead of opening them on double-click*)
FileBrowser[BTools`$AppDirectory,
{$InstallationDirectory, $BaseDirectory, $UserBaseDirectory}
]
(*Loads a different root directory and sidebar*)
```

(*Out:*)

![title-5470197701854498057](project/img/title-5470197701854498057.png)

## OldHelpBrowser

Creates an old-style (pre-Version 6) help browser. Also includes a search function. Builds an index of all existing documentation pages. Load it like so:

```(*mathematica*)
Get["https://raw.githubusercontent.com/b3m2a1/mathematica-tools/master/OldHelpBrowser.wl"]
```

Then use it like so:

```(*mathematica*)
OpenHelpBrowser[CurrentValue[HomePage] (* Optional. Blank will open faster. *)]
```

(*Out:*)

NotebookObject[FrontEndObject[LinkObject["36tt4_shm", 3, 1]], 681]

![title-7242757585790016598](project/img/title-7242757585790016598.png)

It also implements documentation search:

```(*mathematica*)
HelpPagesSearch[
{
"type"->"Symbol",
"title"->"*My*"
},
True
]
```

(*Out:*)

![title-731980004634513015](project/img/title-731980004634513015.png)

Clicking on one of those links will open the browser

![title-6203410312044118217](project/img/title-6203410312044118217.png)