Skip to main content

Mathics3 Hello, World! module

Project description

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

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

mathics3_module_hello-9.0.1.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

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

mathics3_module_hello-9.0.1-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file mathics3_module_hello-9.0.1.tar.gz.

File metadata

  • Download URL: mathics3_module_hello-9.0.1.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mathics3_module_hello-9.0.1.tar.gz
Algorithm Hash digest
SHA256 64c6ed8a8b42f08f6f45ed44bb5477294f00b09c4f718c9c87d69f49813c3d20
MD5 e2efaf6cc181388afb05965fd7af6183
BLAKE2b-256 206e329a8128f4cd809c2020fe82a0b508a8ca40d2afe5d56882bee4e817846e

See more details on using hashes here.

File details

Details for the file mathics3_module_hello-9.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mathics3_module_hello-9.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 114e54bbeea2a6fe092fc4b1bd23026c5c621e34d72f41f7817e3eaa1a75c615
MD5 c20f096b01bf3a8b8dbf776eab42ee70
BLAKE2b-256 53ce843d4d59aedc9f4085087055b8fb85b83607cdaf2bbbab9520b0bd70d38d

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