https://github.com/Mathics3/mathics-django
Django front-end to Mathics3
https://github.com/Mathics3/mathics-django
Last synced: about 1 year ago
JSON representation
Django front-end to Mathics3
- Host: GitHub
- URL: https://github.com/Mathics3/mathics-django
- Owner: Mathics3
- License: other
- Created: 2020-11-26T13:44:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-02T15:18:46.000Z (over 1 year ago)
- Last Synced: 2025-02-02T16:24:49.159Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 34 MB
- Stars: 111
- Watchers: 8
- Forks: 11
- Open Issues: 16
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- Funding: .github/FUNDING.yml
- License: COPYING.txt
- Code of conduct: CODE_OF_CONDUCT.md
- Authors: AUTHORS.txt
Awesome Lists containing this project
README
Welcome to Mathics-Django
=========================
|CI Status| |Pypi Installs| |Latest Version| |Supported Python Versions|
|Packaging status|
This is the Django front-end to `Mathics3 `_.
.. contents::
:depth: 1
:local:
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 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 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).
.. |mathicssserver| image:: https://mathics.org/images/mathicsserver.png
.. |Latest Version| image:: https://badge.fury.io/py/Mathics-Django.svg
:target: https://badge.fury.io/py/Mathics-Django
.. |Supported Python Versions| image:: https://img.shields.io/pypi/pyversions/Mathics-Django.svg
.. |CI status| image:: https://github.com/Mathics3/mathics-django/workflows/Mathics-Django%20(ubuntu)/badge.svg
:target: https://github.com/Mathics3/mathics-django/actions
.. |Packaging status| image:: https://repology.org/badge/vertical-allrepos/mathics-django.svg
:target: https://repology.org/project/mathics-django/versions
.. |Pypi Installs| image:: https://pepy.tech/badge/mathics-django