Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

This is a Mathics3 Python Module showing the classic “Hello, World!” The purpose is to demonstrate how to write a Mathics3 Python Module which extends Mathics3 by adding a function, but written in Python.

You can also use this as a template to clone if you want to create your own Mathics3 Module.

To install in development mode (run code from the source tree):

$ make develop

After installing inside Mathics3, you can load this using the LoadModule[] function.

Then the function `Hello[] is available:

$ mathicsscript
In[1]:= LoadModule["pymathics.hello"]
Out[1]= pymathics.hello

In[2]:= Hello["World"]
Out[2]:= Hello, World!

You can test with py.test:

$ py.test test

or simply:

$ make check

Release files for Mathics3-hello 9.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Mathics3-hello 9.0.0
File Size Uploaded
mathics3_hello-9.0.0.tar.gz 17.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Mathics3-hello 9.0.0
File Interpreter ABI Platform
mathics3_hello-9.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.7 kB

Release files / mathics3_hello-9.0.0.tar.gz

Download URL mathics3_hello-9.0.0.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7242c74f046ee579f891324df8986320af2b17da89a0bd0e9edc7d5523655b5a
BLAKE2b-256 checksum
How to use checksums
ec6338525152b2daa9d82af0c9add9647894c5bd790f3dcead2458b2e869d8be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / mathics3_hello-9.0.0-py3-none-any.whl

Download URL mathics3_hello-9.0.0-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1e4dab6c3148f83db18c882ae10c9a2c0ebd71b530ae12abf11253765c92dc4
BLAKE2b-256 checksum
How to use checksums
fd1004690f6af2f4eafc0951e792e35e2aade3ada320c296d3e33e3d1500c536
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

9.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page