Skip to main content

CI status PyPI Installs Latest Version Supported Python Versions

Packaging status

mathicsscript is a command-line interface to Mathics3.

screenshot

See the screenshot directory for a description and another example.

Features

  • prompt_toolkit and GNU Readline terminal interaction. This includes:
    • saving command history between sessions.

    • variable completion, even for symbol names like \\[Sigma]

    • limited ESC keyboard input; for example esc p esc is π

  • Syntax highlighting using Mathics3-pygments which includes dynamically created variables and functions.

  • Automatic detection of light or dark terminal background color.

  • Optional Graphics rendering via matplotlib for 2D graphics, and Asymptote for 3D and 2D graphics.

  • Entering and displaying Unicode symbols, such as those used for Pi or Rule arrows

  • Provision for running in non-interactive batch mode, which can be used inside POSIX shells

Installing

To install with the full dependencies, run:

$ make install[full]

To install from git sources, so that you run from the git source tree:

$ make develop

Running

Once installed, run using mathicsscript:

$ mathicsscript
Mathicscript: 10.0.0, Mathics3 10.0.0
on CPython 3.14.3 (main, Mar 30 2026, 06:42:16) [GCC 13.3.0]

Using:
SymPy 1.13.3, mpmath 1.3.0, numpy 2.4.4
cython 3.2.4, matplotlib 3.10.8,
Asymptote version 2.95

Copyright (C) 2011-2026 The Mathics3 Team.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
See the documentation for the full license.

Quit by evaluating Quit[] or by pressing CONTROL-D.

In[1]:=

For batch use:

$ mathicsscript -c "N[Pi]"
3.14159

To read from a file, in file /tmp/test.m:

sum=2+2
integral=Integrate[1,x]
Print["Results: ",{sum,integral}]

Feeding this into mathicsscript:

$ mathicsscript --no-prompt </tmp/test.m
4
x
Results: {4, x}
None

For a full list of options, type mathicsscript --help.

Asymptote key bindings

In asymptote graphs keyboard bindings are (copied from the asymptote doc under 8.29 three:

h: home
f: toggle fitscreen
x: spin about the X axis
y: spin about the Y axis
z: spin about the Z axis
s: stop spinning
m: rendering mode (solid/patch/mesh)
e: export
c: show camera parameters
p: play animation
r: reverse animation
: step animation
+: expand
=: expand
>: expand
-: shrink
_: shrink
<: shrink
q: exit
Ctrl-q: exit

Why not IPython via Jupyter?

There will always be a need for a simple terminal-like interaction. Although there is IPython support via Jupyter, all of this is pretty heavyweight. To code to this protocol, a developer needs to write a kernel and use a wire protocol. This adds complexity not only for the person developing this package, but also for the user who needs to load the extra layers that aren’t used. And when something goes wrong, it is harder to track down problems.

At the other end of the spectrum, if the dependencies of this package are too onerous and you want even simpler, lighter-weight terminal interaction without any of the features mentioned above, use mathics3 which is distributed as part of the core Mathic3 package.

Release files for mathicsscript 10.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mathicsscript 10.0.0
File Size Uploaded
mathicsscript-10.0.0.tar.gz 70.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mathicsscript 10.0.0
File Interpreter ABI Platform
mathicsscript-10.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 133.5 kB

Release files / mathicsscript-10.0.0.tar.gz

Download URL mathicsscript-10.0.0.tar.gz
Size 70.6 kB
Tags Source
SHA-256 checksum
How to use checksums
aeacd508ccf78a1c06007d815209f29c81422ac4861f24f502c6aa69f7622f4f
BLAKE2b-256 checksum
How to use checksums
9eb14deb897c782deadf512236206be86c69f660ee3a81d6ec6f001d7aef6398
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / mathicsscript-10.0.0-py3-none-any.whl

Download URL mathicsscript-10.0.0-py3-none-any.whl
Size 62.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0686f395b1df4182932ee5eedb3f34c576b94df06daddb01458be4c72abb6658
BLAKE2b-256 checksum
How to use checksums
a0de1b6837de981a1dda842fafd6437db3ef3abf9850a9cf1a7893b8afdc333b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

10.0.0 This release

2 release files

9.0.0

2 release files

8.0.0

2 release files

7.0.0

2 release files

6.0.0

7 release files

5.0.0

6 release files

4.0.0

6 release files

3.3.1

6 release files

3.3.0

6 release files

3.2.1

6 release files

3.2.0

6 release files

3.1.0

7 release files

3.0.0

7 release files

2.2.0

7 release files

2.1.2

7 release files

2.1.1

7 release files

2.1.0

7 release files

2.0.1

7 release files

2.0.0

7 release files

1.1.2

7 release files

1.1.1

7 release files

1.1.0

7 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page