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 Mathics3.

Features:

  • Extensive online documentation

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

  • Notebook-like sessions

See also Mathics3-live for a Webassembly-powered Python kernel backed by Pyodide, and this for other notebook front-ends.

ScreenShot

mathicsserver: a Django-based Web interface

mathicssserver

Installing

This package needs a working Mathics3 Kernel, 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 Django’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 Mathics3! 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 Distribution

mathics_django-9.0.0.tar.gz (9.9 MB view details)

Uploaded Source

Built Distribution

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

mathics_django-9.0.0-py3-none-any.whl (11.3 MB view details)

Uploaded Python 3

File details

Details for the file mathics_django-9.0.0.tar.gz.

File metadata

  • Download URL: mathics_django-9.0.0.tar.gz
  • Upload date:
  • Size: 9.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mathics_django-9.0.0.tar.gz
Algorithm Hash digest
SHA256 458e64ed7fa1991d38c8d11323caf12f8eb004685b2b63b46e5d64ad47c4d8d2
MD5 1dbe6f9434fd5d0e3268c0a66eaa0e68
BLAKE2b-256 732c6b919c510de4a692ddf3c7826bc52b857deb0b681f4f6272f0a601db9b60

See more details on using hashes here.

File details

Details for the file mathics_django-9.0.0-py3-none-any.whl.

File metadata

  • Download URL: mathics_django-9.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mathics_django-9.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ca4bfa55ddf83913c9c65511c539c2020b2355d803bb0b2c7634f9f9b956853
MD5 8faf3dbf54a7a6c78f429e082ae82fdb
BLAKE2b-256 148a9e0449bacce3f46ff51141311cd6417a13713e470d0eb366b53759ae14a9

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