Configuring the Maple Kernel for Jupyter
Configuring the Maple Kernel for Jupyter is required to make Maple available as a kernel within a Jupyter session.
All the necessary components to use Maple as a kernel within Jupyter are already installed, but they must be explicitly made available to your Jupyter installation.
This guide assumes that there is an existing Jupyter installation including at least one of Jupyter Notebook or JupyterLab. If this is not the case, Jupyter can be obtained with Anaconda, Miniconda, or pip.
Verify Existing Jupyter Installation
Verify that there is an existing Jupyter installation onto which a new kernel can be installed. Open a terminal window from which the jupyter command can be accessed and execute the command
jupyter kernelspec list
You should see a list of available kernels, such as Python. If you instead see an error message, your Jupyter installation may be incomplete.
Generate Configuration Files
Choose a writable directory somepath and generate a Jupyter kernel configuration directory using the Jupyter[GenerateKernelConfiguration] command, where somepath is written as a Maple string.
This should generate a subdirectory somepath/maple containing the files needed to add the Maple Kernel to the Jupyter installation.
Install Kernel into Jupyter
Open a terminal window from which the jupyter command can be accessed and execute the command
jupyter kernelspec install somepath/maple
Depending on the nature of your Jupyter installation, this may require superuser privileges.
After installation, run Jupyter Notebook or JupyterLab as usual.
When you choose to open a new session (Console, Notebook, etc.) you should now see an option for a kernel called Maple 2023.
A Jupyter session with the Maple kernel is similar to the experience of other Jupyter kernels and uses the REPL (Read, Evaluate, Print, Loop) paradigm.
The user interacts with a notebook document which can contain text, images, or media as well as code cells.
The code cells accept Maple code input in a manner similar to Code Edit Regions in a Maple worksheet. The syntax accepted is identical to the normal Maple programming language.
Download Help Document