Configuring the Maple Kernel for Jupyter - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Jupyter : Configuring the Maple Kernel for Jupyter

Configuring the Maple Kernel for Jupyter

 

Description

Steps

Description

• 

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.

Steps

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.

  

Jupyter[GenerateKernelConfiguration](somepath)

  

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 2024.

Test Connection

• 

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.

See Also

Formats/Jupyter

Jupyter/package

Worksheet:-WorksheetToJupyter