11  Customizing Wolframite

(ns advanced.customizing-wolframite
  (:require [scicloj.kindly.v4.kind :as k]
            [wolframite.core :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.1, :started? true}
(wl/eval '(๐Ÿ”‹ 2 5))
32

, and function call,

(wl/restart!)
{:status :ok, :wolfram-version 14.1, :started? true}
(wl/eval '(๐Ÿ”‹๐Ÿ”‹ 2 5) {:aliases '{๐Ÿ”‹๐Ÿ”‹ Power}})
32

Use 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/eval (w/๐Ÿ”‹ 2 5) {:aliases '{๐Ÿ”‹ Power}}).

source: notebooks/advanced/customizing_wolframite.clj