SetOutputRendererByType - 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 : Jupyter Package : SetOutputRendererByType

Jupyter

  

SetOutputRendererByType

  

set renderer for output from Maple code cells in Jupyter

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

SetOutputRendererByType( mpltype, mediatype )

Parameters

mpltype

-

type

mediatype

-

string or default

Description

• 

SetOutputRendererByType(mpltype,mediatype) specifies that Jupyter should use the renderer for objects with media type mediatype to render Maple output matching the type mpltype.

• 

If mediatype is a string, it must be one of the IANA media types "application/json", "text/html", "text/plain", "text/latex", "image/gif", "image/png", or "image/svg".

• 

Note that not every media type is suitable for rendering a given Maple type, and a useful rendering is not guaranteed after calling SetOutputRendererByType.

• 

If mediatype is the symbol default, this has the effect of cancelling any previous call to SetOutputRendererByType for the type mpltype and reverting to default behavior. If SetOutputRendererByType was not previously called in this session, this has no effect.

Examples

Specify that any equations should be rendered using "text/plain". By default these would be rendered as "text/latex".

withJupyter:

SetOutputRendererByTypeequation,text/plain

default

(1)

SetOutputRendererByTypeequation,default

text/plain

(2)

Compatibility

• 

The Jupyter[SetOutputRendererByType] command was introduced in Maple 2022.

• 

For more information on Maple 2022 changes, see Updates in Maple 2022.

See Also

Jupyter

Jupyter/package

Maple Kernel for Jupyter