Skip to main content

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[]
Out[2]:= Hello, World!

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

You can test with pytest:

$ pytest test

or simply:

$ make check

Release files for Mathics3-Module-hello 9.0.1

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-Module-hello 9.0.1
File Size Uploaded
mathics3_module_hello-9.0.1.tar.gz 17.9 kB Details

Built distribution (wheel)

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

Total release size: 36.1 kB

Release files / mathics3_module_hello-9.0.1.tar.gz

Download URL mathics3_module_hello-9.0.1.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
64c6ed8a8b42f08f6f45ed44bb5477294f00b09c4f718c9c87d69f49813c3d20
BLAKE2b-256 checksum
How to use checksums
206e329a8128f4cd809c2020fe82a0b508a8ca40d2afe5d56882bee4e817846e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / mathics3_module_hello-9.0.1-py3-none-any.whl

Download URL mathics3_module_hello-9.0.1-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
114e54bbeea2a6fe092fc4b1bd23026c5c621e34d72f41f7817e3eaa1a75c615
BLAKE2b-256 checksum
How to use checksums
53ce843d4d59aedc9f4085087055b8fb85b83607cdaf2bbbab9520b0bd70d38d
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.1 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