|CI status| |Pypi Installs| |Latest Version| |Supported Python Versions|
|Packaging status|
mathicsscript is a command-line interface to `Mathics <https://mathics.org>`_.
|screenshot|
See the `screenshot directory <https://github.com/Mathics3/mathicsscript/tree/master/screenshots>`_ for a description and another example.
Features
--------
* `prompt_toolkit <https://python-prompt-toolkit.readthedocs.io/en/stable>`_ 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 `mathics-pygments <https://pypi.org/project/mathics-pygments/>`_ which includes dynamically created variables and functions.
* Automatic detection of light or dark `terminal background color <https://pypi.org/project/term-background/>`_.
* Optional Graphics rendering via `matplotlib <https://matplotlib.org/>`_ for 2D graphics, and `Asymptote <https://asymptote.sourceforge.io>`_ for 3D graphcs.
* 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: 7.0.0, Mathics 7.0.0
on CPython 3.7.10 (default, Feb 23 2021, 10:13:46)
using SymPy 1.8, mpmath 1.2.1, numpy 1.20.2, cython 0.29.22
Copyright (C) 2011-2024 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*
any of the features mentioned above, use ``mathics`` which is distributed as part of
the core Mathic3 package.
.. |screenshot| image:: https://mathics.org/images/mathicsscript1.gif
.. |Latest Version| image:: https://badge.fury.io/py/mathicsscript.svg
:target: https://badge.fury.io/py/mathicsscript
.. |Pypi Installs| image:: https://pepy.tech/badge/mathicsscript
.. |Supported Python Versions| image:: https://img.shields.io/pypi/pyversions/mathicsscript.svg
.. |CI status| image:: https://github.com/Mathics3/mathicsscript/workflows/mathicsscript%20(ubuntu)/badge.svg
:target: https://github.com/Mathics3/mathicsscript/actions
.. |Packaging status| image:: https://repology.org/badge/vertical-allrepos/mathicsscript.svg
:target: https://repology.org/project/mathicsscript/versions
Raw data
{
"_id": null,
"home_page": null,
"name": "mathicsscript",
"maintainer": "Mathics3 Group",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "Mathematica, Wolfram, Interpreter, Shell, Math, CAS",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/59/cf/8e3391fe46f561b6ec5f603228514293d0e95d8212f8efd770aae25498fa/mathicsscript-7.0.0.tar.gz",
"platform": null,
"description": "|CI status| |Pypi Installs| |Latest Version| |Supported Python Versions|\n\n|Packaging status|\n\nmathicsscript is a command-line interface to `Mathics <https://mathics.org>`_.\n\n|screenshot|\n\nSee the `screenshot directory <https://github.com/Mathics3/mathicsscript/tree/master/screenshots>`_ for a description and another example.\n\n\nFeatures\n--------\n\n* `prompt_toolkit <https://python-prompt-toolkit.readthedocs.io/en/stable>`_ and GNU Readline terminal interaction. This includes:\n - saving command history between sessions.\n - variable completion, even for symbol names like ``\\\\[Sigma]``\n - limited ESC keyboard input; for example *esc* ``p`` *esc* is \u03c0\n* Syntax highlighting using `mathics-pygments <https://pypi.org/project/mathics-pygments/>`_ which includes dynamically created variables and functions.\n* Automatic detection of light or dark `terminal background color <https://pypi.org/project/term-background/>`_.\n* Optional Graphics rendering via `matplotlib <https://matplotlib.org/>`_ for 2D graphics, and `Asymptote <https://asymptote.sourceforge.io>`_ for 3D graphcs.\n* Entering and displaying Unicode symbols such as used for Pi or Rule arrows\n* Provision for running in non-interactive batch mode which an be used inside POSIX shells\n\nInstalling\n----------\n\nTo install, run\n::\n\n $ make install\n\nTo install from git sources so that you run from the git source tree:\n\n\n::\n\n $ make develop\n\n\nRunning\n-------\n\nOnce install run using ``mathicsscript``:\n\n::\n\n $ mathicsscript\n Mathicscript: 7.0.0, Mathics 7.0.0\n on CPython 3.7.10 (default, Feb 23 2021, 10:13:46)\n using SymPy 1.8, mpmath 1.2.1, numpy 1.20.2, cython 0.29.22\n\n Copyright (C) 2011-2024 The Mathics Team.\n This program comes with ABSOLUTELY NO WARRANTY.\n This is free software, and you are welcome to redistribute it\n under certain conditions.\n See the documentation for the full license.\n\n Quit by evaluating Quit[] or by pressing CONTROL-D.\n\n In[1]:=\n\n\nFor batch use:\n::\n\n $ mathicsscript -c \"N[Pi, 30]\"\n 3.14159265358979323846264338328\n\nTo read from a file\n\nIn file ``/tmp/test.m``:\n\n::\n\n sum=2+2\n integral=Integrate[1,x]\n Print[\"Results: \",{sum,integral}]\n\nFeeding this into ``mathicsscript``:\n\n::\n\n $ mathicsscript --no-prompt </tmp/test.m\n 4\n x\n Results: {4, x}\n None\n\n\nFor a full list of options, type ``mathicsscript --help``.\n\n\nWhy not IPython via Jupyter?\n----------------------------\n\nThere will always be a need for simple terminal-like\ninteraction. Although there is IPython support via Jupyter all of this\nis pretty heavy-weight. To code to this protocol, a developer needs to\nwrite a kernel, and use a wire protocol. This adds complexity not\nonly for the person developing this package, but also for the user who\nneeds to load the extra layers that aren't used. And when something\ngoes wrong, it is harder to track down problems.\n\nAt the other end of the spectrum, if the dependencies of this package\nare too onerous and you want even simpler, lighter-weight terminal interaction *without*\nany of the features mentioned above, use ``mathics`` which is distributed as part of\nthe core Mathic3 package.\n\n\n.. |screenshot| image:: https://mathics.org/images/mathicsscript1.gif\n.. |Latest Version| image:: https://badge.fury.io/py/mathicsscript.svg\n\t\t :target: https://badge.fury.io/py/mathicsscript\n.. |Pypi Installs| image:: https://pepy.tech/badge/mathicsscript\n.. |Supported Python Versions| image:: https://img.shields.io/pypi/pyversions/mathicsscript.svg\n.. |CI status| image:: https://github.com/Mathics3/mathicsscript/workflows/mathicsscript%20(ubuntu)/badge.svg\n\t\t :target: https://github.com/Mathics3/mathicsscript/actions\n.. |Packaging status| image:: https://repology.org/badge/vertical-allrepos/mathicsscript.svg\n\t\t\t :target: https://repology.org/project/mathicsscript/versions\n",
"bugtrack_url": null,
"license": "GPL-3.0-only",
"summary": "Command-line interface to Mathics3",
"version": "7.0.0",
"project_urls": {
"Homepage": "https://mathics.org/"
},
"split_keywords": [
"mathematica",
" wolfram",
" interpreter",
" shell",
" math",
" cas"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "25fa51c373baf9a93dd760d72c2f5b01571b379d7fe2f2744c5788b56faf79fa",
"md5": "647c1203aa2e0d99998bef9023947ef9",
"sha256": "82bf16b22daaa0bf90021c463bd4c91067fa427e8999957b71f0e7d1b7eb37c8"
},
"downloads": -1,
"filename": "mathicsscript-7.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "647c1203aa2e0d99998bef9023947ef9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 58993,
"upload_time": "2024-08-10T04:53:05",
"upload_time_iso_8601": "2024-08-10T04:53:05.406137Z",
"url": "https://files.pythonhosted.org/packages/25/fa/51c373baf9a93dd760d72c2f5b01571b379d7fe2f2744c5788b56faf79fa/mathicsscript-7.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "59cf8e3391fe46f561b6ec5f603228514293d0e95d8212f8efd770aae25498fa",
"md5": "3a24dfaaa67a0d9832d70e5f6a25db39",
"sha256": "f4dc0974fa04782fff09a82c89b3c5554c47c38eb85d4b8c19460e20357af796"
},
"downloads": -1,
"filename": "mathicsscript-7.0.0.tar.gz",
"has_sig": false,
"md5_digest": "3a24dfaaa67a0d9832d70e5f6a25db39",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 64235,
"upload_time": "2024-08-10T04:53:06",
"upload_time_iso_8601": "2024-08-10T04:53:06.943713Z",
"url": "https://files.pythonhosted.org/packages/59/cf/8e3391fe46f561b6ec5f603228514293d0e95d8212f8efd770aae25498fa/mathicsscript-7.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-10 04:53:06",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mathicsscript"
}