Skip to main content

A general-purpose computer algebra system.

Project description

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.

Project details


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.1.0.tar.gz (49.2 kB view details)

Uploaded Source

Built Distributions

mathicsscript-3.1.0-py3.9.egg (65.7 kB view details)

Uploaded Source

mathicsscript-3.1.0-py3.8.egg (65.7 kB view details)

Uploaded Source

mathicsscript-3.1.0-py3.7.egg (65.4 kB view details)

Uploaded Source

mathicsscript-3.1.0-py3.6.egg (65.4 kB view details)

Uploaded Source

mathicsscript-3.1.0-py3-none-any.whl (48.7 kB view details)

Uploaded Python 3

mathicsscript-3.1.0-py2.py3-none-any.whl (48.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mathicsscript-3.1.0.tar.gz
  • Upload date:
  • Size: 49.2 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.1.0.tar.gz
Algorithm Hash digest
SHA256 81641debb6dd0cf0307072e482c225d82b85b57c22ccdb062687633967d3e529
MD5 c5a42181f9696c2f281d03df82c9fae0
BLAKE2b-256 2e0c8c000368b269da957c9da50a308eb86e32e7cfd3e9ba8012cc0261845c03

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mathicsscript-3.1.0-py3.9.egg
  • Upload date:
  • Size: 65.7 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.1.0-py3.9.egg
Algorithm Hash digest
SHA256 86052c28ee5d27459e1605c7c79fadbd6bc92f86550479b80f0c26f4eae1e4a3
MD5 0675fd0db88e7619cf8e7193e2f1b0f3
BLAKE2b-256 840a8950b88dc47f8dc7002cf626296cfb94a3237a105d2302848a67d8249e24

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mathicsscript-3.1.0-py3.8.egg
  • Upload date:
  • Size: 65.7 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.1.0-py3.8.egg
Algorithm Hash digest
SHA256 a1528cf6fff23ca0c077e84539eb5fa5c9f32e7e0cd7dbe839846f1d0e25b025
MD5 0b28c8eb49378c537251456cda3a564e
BLAKE2b-256 01809c604a8fd9adf33250e8915f1e783ae2cc706349c6e5a62b14656daeeab4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mathicsscript-3.1.0-py3.7.egg
  • Upload date:
  • Size: 65.4 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.1.0-py3.7.egg
Algorithm Hash digest
SHA256 7802507868fd57521f92b97871b618e4386e587f4fe63b8e355effe016819783
MD5 5723db6c44e9b1f29b6bea9bbfaf23e5
BLAKE2b-256 d8f39fa6357ec0e784f7df812c274b8678dc929017a6f11073051266a99fa60c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mathicsscript-3.1.0-py3.6.egg
  • Upload date:
  • Size: 65.4 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.1.0-py3.6.egg
Algorithm Hash digest
SHA256 ff16d8f445834f71d06a91a34f0feb9cbb164c5f51071bafccf6f228ca4d57f7
MD5 e15df51d416b5484e60d0708d6a35ce6
BLAKE2b-256 544f6ba1836e0f72b2ead244fa7b10868e2b856b510ebe3414c38cf01d93d865

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mathicsscript-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 48.7 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 222e7b7bc12923b17e12c23f0a235b7803d79a7f395339820797966e2f235e4a
MD5 347745a86c0888b4012d2f9a79eeb193
BLAKE2b-256 355caf00c457333dfe47d97ec4a67ccf4229829a233a7f54fba9eec3d9554e11

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mathicsscript-3.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 48.7 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.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f3f4e379f7b21e910ef19c20948f65543e98a79b5140774acd2cc7242660579b
MD5 a04510166a771e0a002f04fd0bea1419
BLAKE2b-256 fe8db9c617e6aa74a8bde3a984f5d6859a1486f18ad088fcdd7fe87c29b07743

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page