Skip to main content

CI status Pypi Installs Latest Version Supported Python Versions

Packaging status

mathicsscript is a command-line interface to Mathics.

screenshot

See the screenshot directory for a description and another example.

Features

  • 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 pygments.

  • Automatic detection of light or dark terminal background color.

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

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

Installing

To install, run

$ make install

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

$ make develop

Running

Once install run using mathicsscript:

$ mathicsscript
Mathicscript: 2.1.2, Mathics 2.1.1.dev0
on CPython 3.7.10 (default, Feb 27 2021, 08:15:51)
using SymPy 1.7.1, mpmath 1.2.1, numpy 1.20.1

Copyright (C) 2011-2021 The Mathics 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, 30]"
3.14159265358979323846264338328

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.

Why not IPython via Jupyter?

There will always be a need for simple terminal-like interaction. Although there is IPython support via Jupyter all of this is pretty heavy-weight. 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_ and of the features mentioend above, use mathics which is distributed as part of the core Mathic3 package.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mathicsscript-3.0.0.tar.gz (42.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mathicsscript-3.0.0-py3.9.egg (52.3 kB view details)

Uploaded Egg

mathicsscript-3.0.0-py3.8.egg (52.3 kB view details)

Uploaded Egg

mathicsscript-3.0.0-py3.7.egg (52.0 kB view details)

Uploaded Egg

mathicsscript-3.0.0-py3.6.egg (52.0 kB view details)

Uploaded Egg

mathicsscript-3.0.0-py3-none-any.whl (37.4 kB view details)

Uploaded Python 3

mathicsscript-3.0.0-py2.py3-none-any.whl (37.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mathicsscript-3.0.0.tar.gz.

File metadata

  • Download URL: mathicsscript-3.0.0.tar.gz
  • Upload date:
  • Size: 42.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for mathicsscript-3.0.0.tar.gz
Algorithm Hash digest
SHA256 ec6f5876c72ffa37ff752cd9a84fffac8ad48506610eae560e6144403f4aa16d
MD5 ca33b915815d98b8420e63fdb762f132
BLAKE2b-256 f7372989ee9d5238b3578b0d2f3c1d947bc69c73a3540b2fc5cf896f5e5975a4

See more details on using hashes here.

File details

Details for the file mathicsscript-3.0.0-py3.9.egg.

File metadata

  • Download URL: mathicsscript-3.0.0-py3.9.egg
  • Upload date:
  • Size: 52.3 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for mathicsscript-3.0.0-py3.9.egg
Algorithm Hash digest
SHA256 60231d9ec827fed9549962ba1d08a032017db02f6c5aa0eafa8dc6351ae4925c
MD5 2bcffa3685580e435bd54b058864280d
BLAKE2b-256 6c273490c729d74de1141896858f5de8f73603c99dc827c1fc25d1299338e30c

See more details on using hashes here.

File details

Details for the file mathicsscript-3.0.0-py3.8.egg.

File metadata

  • Download URL: mathicsscript-3.0.0-py3.8.egg
  • Upload date:
  • Size: 52.3 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for mathicsscript-3.0.0-py3.8.egg
Algorithm Hash digest
SHA256 294ac37f45772a1b181e3a89385038f0b6ee32eb1bace641fd2f091a805022d8
MD5 5f55dc12b128e4fdafe86720aa89405c
BLAKE2b-256 9354b1b0270fd5d561ec02d3ebf832247af896f67ed46c4d649072192f78425c

See more details on using hashes here.

File details

Details for the file mathicsscript-3.0.0-py3.7.egg.

File metadata

  • Download URL: mathicsscript-3.0.0-py3.7.egg
  • Upload date:
  • Size: 52.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for mathicsscript-3.0.0-py3.7.egg
Algorithm Hash digest
SHA256 476fc51730817e3f6a802d4e799d6275df70307ed999849aa351c3b52ee8a9b0
MD5 2947578d4b07996dc9089dd74891848d
BLAKE2b-256 a085d71ee6949b5848b9d5efcad6928a8da27da2cca0bfcdf306c9b39ab8cabf

See more details on using hashes here.

File details

Details for the file mathicsscript-3.0.0-py3.6.egg.

File metadata

  • Download URL: mathicsscript-3.0.0-py3.6.egg
  • Upload date:
  • Size: 52.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for mathicsscript-3.0.0-py3.6.egg
Algorithm Hash digest
SHA256 0eb3f56e23a8c853e8491fb29d2f1434976e8a09adb0252e1e3eb407452f8f22
MD5 57a79b2c6e287a588244777f43cdc6fb
BLAKE2b-256 6cacccc741775f8dc5c10b98bcbf39403d8b3f527fa114e549d290764d53f148

See more details on using hashes here.

File details

Details for the file mathicsscript-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: mathicsscript-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 37.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for mathicsscript-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5656a126485c8e3511b193d8d5c53daa17ab5b558562f47cd707ebe7ec641af2
MD5 9c058ef239a14b501883c78f3b3f09bc
BLAKE2b-256 561b28242a331955abe1ef5081650c231cce145514bcb77d309a2ce4065a4754

See more details on using hashes here.

File details

Details for the file mathicsscript-3.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: mathicsscript-3.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 37.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for mathicsscript-3.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 306137475dd1fcd854dca6f0d4b077de6da0df1586890cc37ef72369d05f88b3
MD5 8313b1da1d6f28261c1dbd08bfe0ec0a
BLAKE2b-256 0b31442735235fa3e6d8af1fbea4fef19b7021d7a46a50fd47da234a20e56400

See more details on using hashes here.

Release history Release notifications | RSS feed

10.0.0

2 files

9.0.0

2 files

8.0.0

2 files

7.0.0

2 files

6.0.0

7 files

5.0.0

6 files

4.0.0

6 files

3.3.1

6 files

3.3.0

6 files

3.2.1

6 files

3.2.0

6 files

3.1.0

7 files

This release

3.0.0 This release

7 files

2.2.0

7 files

2.1.2

7 files

2.1.1

7 files

2.1.0

7 files

2.0.1

7 files

2.0.0

7 files

1.1.2

7 files

1.1.1

7 files

1.1.0

7 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