Skip to main content

A Collection Mathics components to provide the full Mathics experience

Project description

Pypi Installs Latest Version Supported Python Versions

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 run the docker version of these.

This repository also contains the dockerfiile to create the mathicsorg/mathics docker images.

That image is a combination of:

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](https://github.com/Mathics3/mathics-omnibus/tree/master/docker/django-db).

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 Distribution

Mathics-omnibus-3.0.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distributions

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

Mathics_omnibus-3.0.0-py3.8.egg (3.9 kB view details)

Uploaded Egg

Mathics_omnibus-3.0.0-py3.6.egg (3.9 kB view details)

Uploaded Egg

Mathics_omnibus-3.0.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

Mathics_omnibus-3.0.0-py2.py3-none-any.whl (16.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file Mathics-omnibus-3.0.0.tar.gz.

File metadata

  • Download URL: Mathics-omnibus-3.0.0.tar.gz
  • Upload date:
  • Size: 15.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 Mathics-omnibus-3.0.0.tar.gz
Algorithm Hash digest
SHA256 892caaed870b68fdecea1ad83e19c4b546c940b62027421c4c3f6182a3f8fd4d
MD5 4b516be490fae21f40146502534da879
BLAKE2b-256 174b51547477ba93c2df921d88ad4348d6de6b1003a5ca48a4654a1a8b921fea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Mathics_omnibus-3.0.0-py3.8.egg
  • Upload date:
  • Size: 3.9 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 Mathics_omnibus-3.0.0-py3.8.egg
Algorithm Hash digest
SHA256 14fb48de7d9470ce6557c842195e039fb5fb8529c442502d17f1ce47be39f85a
MD5 ad4fe9472bf42d5cf7a208a0c5d3cbc4
BLAKE2b-256 bd5da9e828f41aaf872fa30b73dea3db033cb4dd3c0b89c3c20ee3a4655a7c00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Mathics_omnibus-3.0.0-py3.6.egg
  • Upload date:
  • Size: 3.9 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 Mathics_omnibus-3.0.0-py3.6.egg
Algorithm Hash digest
SHA256 d0af073afad6eddc79185097ebcb3a86f195047a46d6caceec867c1c5105e1aa
MD5 840279440f17bb1926fb706fc67fd7db
BLAKE2b-256 994bea42eecc7137bc9ee713406ddffbe2116c393b12e29b0106c877bf2c96bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Mathics_omnibus-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 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 Mathics_omnibus-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e05f1d3a5f5be6166eba40d76b3ef500138d82da91cd1515208b46ce2ab6c2c6
MD5 175c88e8b38c4433642175c5863fd4a2
BLAKE2b-256 e37a5fb13c31fea076c85c7ca7232f890cfcdbfc3481c9d9c6a4d75357852abe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Mathics_omnibus-3.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.5 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 Mathics_omnibus-3.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 33fe038a9d39f92d5ef5bed2838503a1d2389f9bd0a531f9461bd8b697eb331f
MD5 ef3cae4383143ebd6a92b43fb45a2338
BLAKE2b-256 9cf1bf78d92a5014fce2266bf364b1ce9d25013a8a336347d37e5b2b871011c9

See more details on using hashes here.

Supported by

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