Skip to main content

No project description provided

Project description

Test PyMathics module

This is a Python module for Mathics that is an simple “Hello, World” example that is typically used as a minimal example for demonstration.

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

Here we are demonstrating how to write a PyMathics module.

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

$ make develop

After installing inside Mathics 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

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

pymathics-hello-7.0.0.tar.gz (17.9 kB view hashes)

Uploaded Source

Built Distribution

pymathics_hello-7.0.0-py3-none-any.whl (17.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page