A Collection Mathics components to provide the full Mathics experience
Project description
Mathics is a general-purpose computer algebra system (CAS). It is an open-source alternative to Mathematica. It is free both as in “freedom” and as in “free beer”.
Mathics consists of a number of separable components so that those pieces that are desired can be used without the burden of dependencies of the other parts.
For example if you are interested in just running a command-line interface, you might not be interested in having Django and what that entails and vice versa. If you are just interested in the computational library, there is no need for either the Web parts or the command-line library parts.
But what if you want both command-line interface, Web interface, all of the Pymathics libraries and whatever else there is to offer?
That’s what this repository is about. Here we have a PyPI installable package that pull in the various components and offer commands:
mathicsscript to run the command-line interface,
mathicsserver to run the Django-Web server,
dmathicsscript and dmathicsserver which runs the docker version of these,
dmathicssdoc which runs a PDF viewer, evince, which can view the generated reference manual in PDF.
dmathicssdoccopy which copies the the generated reference PDF manual out of the container and into the host filesystem.
This repository also contains the Dockerfiles used to create the mathicsorg/mathics docker images.
That image is a combination of:
Mathics-Scanner (WL Character Tables and Mathics Scanner)
mathicsscript (Command-line Mathics Interface)
mathics-pygments (WL Syntax Highlighting)
Mathics-Django (Django-based HTTP server)
mathics-threejs-backend (Graphics3D rendering using threejs)
pymathics-natlang (Natural Language Processing add-on)
pymathics-graph (Graph add-on based on NetworkX.
It is likely that in the future more components will be added, so stay tuned…
Docker-specific items
By default, we use a SQLite database that has examples that you can load and use. This data comes from mathics-omnibus/django-db/mathics.sqlite.
Since this is tied to the docker image, any changes made won’t survice across restarting the docker image.
If you would like to save your own you can set the environment variable MATHICS_DJANGO_DB_PATH. Here is an example:
$ MATHICS_DJANGO_DB_PATH=/usr/src/app/data/mathics-django/mathics.sqlite ../mathics-omnibus/script/dmathicsserver
MATHICS_DJANGO_DB_PATH=/usr/src/app/data/mathics-django/mathics.sqlite ../mathics-omnibus/script/dmathicsserver^J-(../mathics-omnibus/script/dmathicsserver:5): -[2,0, 0]
DOCKER=docker
-(../mathics-omnibus/script/dmathicsserver:6): -[2,0, 0]
MATHICS_DJANGO_DB=mathics.sqlite
-(../mathics-omnibus/script/dmathicsserver:7): -[2,0, 0]
MATHICS_DJANGO_DB_PATH=/usr/src/app/data/mathics-django/mathics.sqlite
-(../mathics-omnibus/script/dmathicsserver:9): -[2,0, 0]
docker run -it --name mathics-web --rm --env=DISPLAY --env MATHICS_DJANGO_DB_PATH=/usr/src/app/data/mathics-django/mathics.sqlite --workdir=/app --volume=/src/external-vcs/github/Mathics3/mathics-django:/app --volume=/tmp/.X11-unix:/tmp/.X11-unix:rw -p 8000:8000 -v /tmp:/usr/src/app/data mathicsorg/mathics --mode ui
~~~~ app/data has been mounted to /usr/src/app/data ~~~~
~~~~ SQLite data (worksheets, user info) will be stored in /usr/src/app/data/mathics django/mathics.sqlite ~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: database file /usr/src/app/data/mathics-django/mathics.sqlite not found
Migrating database /usr/src/app/data/mathics-django/mathics.sqlite
Operations to perform:
Apply all migrations: auth, contenttypes, sessions, sites, web
Running migrations:
In the above when it says mathics.sqlite not found an empty one is created. The real location of it outside of the container is in /tmp/mathics-django/mathics.sqlite.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file Mathics_omnibus-4.0.1-py3.9.egg
.
File metadata
- Download URL: Mathics_omnibus-4.0.1-py3.9.egg
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edffbe8f4b53c9de067cb8eaf41e22964de51c261f4d45bf6eaf86cff7647495 |
|
MD5 | 87c68e55ba9ab7d335e9543226054314 |
|
BLAKE2b-256 | 5ca5a629bccea88f151aa14832632dfe2e8ca0e234df6caa7cdb1aa02ce4e68b |
File details
Details for the file Mathics_omnibus-4.0.1-py3.8.egg
.
File metadata
- Download URL: Mathics_omnibus-4.0.1-py3.8.egg
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8048862dd04109b1821130d3d63cd6b6996fbe0d746facd040cbfd2dbc1ff80 |
|
MD5 | c7aa86465c4604f597e6a2e87ae27da4 |
|
BLAKE2b-256 | 5b072c81bb3fca6564f7115005b17460209068bfec44d316a0640e57c10d17ef |
File details
Details for the file Mathics_omnibus-4.0.1-py3.7.egg
.
File metadata
- Download URL: Mathics_omnibus-4.0.1-py3.7.egg
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d2195eaa3b91747f6ca98cddcfb81047c6e34dbb06a90b9a9a532ad438f18c6 |
|
MD5 | d7b0cd596e4c1decc67968dc8ab42bc0 |
|
BLAKE2b-256 | f080ffe96d99a9fe6940c867fe0e325e3940e369f3df78465ba0fbc8978d128a |
File details
Details for the file Mathics_omnibus-4.0.1-py3.6.egg
.
File metadata
- Download URL: Mathics_omnibus-4.0.1-py3.6.egg
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01602799c709d499d6cd110cdb81552be056a786844188962e983107a0f849cf |
|
MD5 | be7f640cbe2e817146feb1374841e961 |
|
BLAKE2b-256 | 09db6e8a0792e64fef82027791479fb847d1d873104a45b37d730f9d3e80af69 |
File details
Details for the file Mathics_omnibus-4.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: Mathics_omnibus-4.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dc3bceb3f6bf52e3f36d167d8e842345a7a0847a44b359bce7fd0bdcfd476a5 |
|
MD5 | 3cb0ba9993c2ac98d87b70385d77637b |
|
BLAKE2b-256 | 3a75096d37c6623b310f4c011d46e074e74faa6aabacd4e9a73217f03cdaf1b1 |