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

Uploaded Source

Built Distributions

mathicsscript-2.2.0-py3.9.egg (51.1 kB view details)

Uploaded Source

mathicsscript-2.2.0-py3.8.egg (51.1 kB view details)

Uploaded Source

mathicsscript-2.2.0-py3.7.egg (50.9 kB view details)

Uploaded Source

mathicsscript-2.2.0-py3.6.egg (51.0 kB view details)

Uploaded Source

mathicsscript-2.2.0-py3-none-any.whl (42.1 kB view details)

Uploaded Python 3

mathicsscript-2.2.0-py2.py3-none-any.whl (42.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mathicsscript-2.2.0.tar.gz
  • Upload date:
  • Size: 49.0 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-2.2.0.tar.gz
Algorithm Hash digest
SHA256 bbd9d59f5188b6cc40969a235b1f7c2f05b54ae82583c0eb023a531a9cdfd0a4
MD5 fac6e283f0eafb02c3db169fd17b6f74
BLAKE2b-256 3f7dd8be5a056b0784b4733fe0d5fd2849b804107756e5d57d8eba7213f4c795

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mathicsscript-2.2.0-py3.9.egg
  • Upload date:
  • Size: 51.1 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-2.2.0-py3.9.egg
Algorithm Hash digest
SHA256 d2b863d55e9846ab1088be8e89e1f41a391aa44f0eba2fcb954e96f15341c75b
MD5 49d965d9fb161ad8a294a874724d8aca
BLAKE2b-256 304f632d6c8cf219e2528d37d7fedded1f18299f5e97f131e0b92d85dacf4667

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mathicsscript-2.2.0-py3.8.egg
  • Upload date:
  • Size: 51.1 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-2.2.0-py3.8.egg
Algorithm Hash digest
SHA256 48c16f005360444d49ab84bb66412b241ecc014a33c15f9a4a28da0177c75acc
MD5 65b160355024368532dd947600d4e95d
BLAKE2b-256 9c8dec465827adafd19167727d111d6f987e1425a0d7e696a10c287c76d75bdf

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mathicsscript-2.2.0-py3.7.egg
  • Upload date:
  • Size: 50.9 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-2.2.0-py3.7.egg
Algorithm Hash digest
SHA256 33b64ed82984e4ed79cf3a9e66938e4315d948c83eaec6e13c91ef067d91b5b0
MD5 3360464631f9dcd34cc5681f650f248f
BLAKE2b-256 1296573181dda0c9f294fdfec080e6fda286a279bdf0c86e9c5de10367b450d3

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mathicsscript-2.2.0-py3.6.egg
  • Upload date:
  • Size: 51.0 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-2.2.0-py3.6.egg
Algorithm Hash digest
SHA256 89a9e87dd38240aac51cc05bc195b15c76be1337325157706f06b6237a5dc8d8
MD5 458e3f1ceee47cb2903f01439446e984
BLAKE2b-256 9e98d6d8c242261538ed3d5cb809729e0c36e8155b3b190f8a0fbcd7fd0245b5

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mathicsscript-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 42.1 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-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28070e24bfb9f514929617505abd99ae74e51f74c385d96187e7c21a66256206
MD5 9a0072f7490ae9086c192a23ec5e7015
BLAKE2b-256 b6bf5231764f0c31e730611d79cf2c92c9dd5f4d244e01bf4d6c3493c7729ebb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mathicsscript-2.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 42.1 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-2.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7e3e870b417cb734b3a9c7027d5e89347f02452132da206b835855f840d29da6
MD5 b41d3f8bae6517ec77ce6dfc410b93ee
BLAKE2b-256 46af50be0ddc9600e3abe034b57c6278448c0631331a08c7af1f15178162ebb7

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