11 Customizing Wolframite
(ns advanced.customizing-wolframite
(:require [scicloj.kindly.v4.kind :as k]
[wolframite.api.v1 :as wl]))There are several ways to customize Wolframite to your liking.
11.0.1 Custom aliases
Weโve discussed Wolframiteโs built-in aliases in Section 3.2.7. However, Wolframite allows you to individually tailor the user experience at the level of initialization:
(wl/restart! {:aliases '{๐ Power}}){:status :ok, :wolfram-version 14.2, :started? true}(wl/! '(๐ 2 5))32, and function call,
(wl/restart!){:status :ok, :wolfram-version 14.2, :started? true}(wl/! '(๐๐ 2 5) {:aliases '{๐๐ Power}})32Use it how you want to!
TIP: You can also get convenience vars for your aliases in wolframite.wolfram by running something like (wolframite.impl.wolfram-syms.write-ns/write-ns! <path> {:aliases '{๐ Power}}). After you load the file, youโll be able to use (wl/! (w/๐ 2 5) {:aliases '{๐ Power}}).