Skip to main content

A Django front end for Mathics3.

Project description

CI status Pypi Installs Latest Version Supported Python Versions

Packaging status

This is the Django front-end to Mathics.

Features:

  • Extensive online documentation

  • Integrated graphics, via three.js, and MathML mathematics output

  • Notebook-like sessions

Note: in the future we intend to also proved a Jupyter-like interface.

ScreenShot

mathicsserver: a Django-based Web interface

mathicssserver

Installing

This package needs a working Mathics3, the core engine, installed as well as a recent version of Django. For Django, you will need mysql or mariadb installed, since that is where worksheets are stored.

See the Installing Mathics for instructions on installing Mathics3.

If you are a novice at installing Python packages, consider using either a pre-built OS package if available under “Packaging status” above, or the mathics docker image.

Ubuntu/Debian Specific OS dependent packages

On Ubuntu or Debian:

apt install default-libmysqlclient-dev.

Install from PyPI

Once Mathics3 is installed, run:

pip install Mathics-Django

Install from Github source

From the place root directory that github was checked out:

make install

Running

This is a Django project, so Dango’s manage.py script used.

A simple way to start Mathics Django when GNU make is installed (which is the case on most POSIX systems):

make runserver

Underneath this runs the Python program manage.py in mathics_django directory.

To get a list of the available commands, type python mathics_django/manage.py help. To get help on a specific command give that command at the end. For example two commands that are useful are the runserver and testserver commands. python mathics_django/manage.py help runserver will show options in running the Django server.

Once the server is started you will see a URL listed that lookss like this:

Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Point your browser to the URL listed above. Here it is http://127.0.0.1:8000

Environment Variables

There are two special environment variables of note which controls where the Mathics database is located. This database is saves authentication and worksheet information.

By default the database used is DATADIR + mathics.sqlite where DATADIR is under AppData/Python/Mathics/ for MS-Windows and ~/.local/var/mathics/ for all others. If you want to specify your own database file set environment variable MATHICS_DJANGO_DB_PATH.

If you just want to set the mathics.sqlite portion, you can use the environment variable MATHICS_DJANGO_DB.

Information for the online-documentation comes from one of two places, DOC_USER_HTML_DATA_PATH if that exists and DOC_SYSTEM_HTML_DATA_PATH as fallback if that doesn’t exist. The latter is created when the package is built. The former allows for the user or developer to update this information. In the future it will take into account plugins that have been added.

Contributing

Please feel encouraged to contribute to Mathics! Create your own fork, make the desired changes, commit, and make a pull request.

License

Mathics-Django is released under the GNU General Public License Version 3 (GPL3).

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

Mathics_Django-6.0.0-py3.10.egg (11.4 MB view details)

Uploaded Egg

Mathics_Django-6.0.0-py3.9.egg (11.4 MB view details)

Uploaded Egg

Mathics_Django-6.0.0-py3.8.egg (11.4 MB view details)

Uploaded Egg

Mathics_Django-6.0.0-py3.7.egg (11.4 MB view details)

Uploaded Egg

Mathics_Django-6.0.0-py3.6.egg (11.4 MB view details)

Uploaded Egg

Mathics_Django-6.0.0-py3-none-any.whl (11.4 MB view details)

Uploaded Python 3

File details

Details for the file Mathics_Django-6.0.0-py3.10.egg.

File metadata

  • Download URL: Mathics_Django-6.0.0-py3.10.egg
  • Upload date:
  • Size: 11.4 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for Mathics_Django-6.0.0-py3.10.egg
Algorithm Hash digest
SHA256 5e3587164c945e9af5d47dfecca6842de4c9ffd0aadd65763eda6cb7a062e725
MD5 191854b18429873faa2a78080ac9ec4e
BLAKE2b-256 c6c884ef9c08a46bb35323984214e25de02f9d378ac27bfee7a03f9fd24cdae9

See more details on using hashes here.

File details

Details for the file Mathics_Django-6.0.0-py3.9.egg.

File metadata

  • Download URL: Mathics_Django-6.0.0-py3.9.egg
  • Upload date:
  • Size: 11.4 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for Mathics_Django-6.0.0-py3.9.egg
Algorithm Hash digest
SHA256 1fa160f08dbed8f30254f45a70c6c6623f7e8a6e27d53285b3a59904a7fa6f83
MD5 9ab3f9dcbd928946fabab2c64c7a77f5
BLAKE2b-256 cf69902fa1bd4ed3acbdab5cde69db4a4332798e6d0f92c6240ae085305f3784

See more details on using hashes here.

File details

Details for the file Mathics_Django-6.0.0-py3.8.egg.

File metadata

  • Download URL: Mathics_Django-6.0.0-py3.8.egg
  • Upload date:
  • Size: 11.4 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for Mathics_Django-6.0.0-py3.8.egg
Algorithm Hash digest
SHA256 d31c7c1c64f9a260775cceedf90e21fd0a22ae48744908bf85cded55535ee80c
MD5 48b197a8e3bf5b9dfc8a9622e1365fc0
BLAKE2b-256 5ffe7868922ee71d066f37d30a282dfe10d66feaf2bb513437d12fb73970f319

See more details on using hashes here.

File details

Details for the file Mathics_Django-6.0.0-py3.7.egg.

File metadata

  • Download URL: Mathics_Django-6.0.0-py3.7.egg
  • Upload date:
  • Size: 11.4 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for Mathics_Django-6.0.0-py3.7.egg
Algorithm Hash digest
SHA256 17b8b871d81233e629ad21f9ce2f89dca80d7f97aa7191f364f5674c532b26bb
MD5 2903b3ec8fd22b8fba546dcddc4ac7de
BLAKE2b-256 e875c1205dc7a19e0c3e60d355f5d778565c27aa402a94da0f954bf02f0b90bf

See more details on using hashes here.

File details

Details for the file Mathics_Django-6.0.0-py3.6.egg.

File metadata

  • Download URL: Mathics_Django-6.0.0-py3.6.egg
  • Upload date:
  • Size: 11.4 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for Mathics_Django-6.0.0-py3.6.egg
Algorithm Hash digest
SHA256 1a826c0aaddb99611b06fef1f9e6ad95205924c07e3478e1b4b2b268bde688cc
MD5 bd7ca408f26ec1c3eedcda7e96e2e402
BLAKE2b-256 5ea7d5d8c583454273359d629513cd926aa2c2fdbd77526b231eff01d65dfc09

See more details on using hashes here.

File details

Details for the file Mathics_Django-6.0.0-py3-none-any.whl.

File metadata

  • Download URL: Mathics_Django-6.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for Mathics_Django-6.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a66903ad306c43948fa864f982d825932afa6be36d6488dd8357bd758d49b34
MD5 2d1e775cca60cbb8e884490233c83e49
BLAKE2b-256 81cb0ee61086268ff42d11200a5b7b943904822e32f1c96e4681a5ce96d23fd6

See more details on using hashes here.

Supported by

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