|
Calling Sequence
|
|
WorksheetToJupyter( worksheet, opts )
|
|
Parameters
|
|
worksheet
|
-
|
string or XML tree data structure
|
opts
|
-
|
(optional) options of the form outputfile = ~path
|
|
|
|
|
Options
|
|
|
Specifies a file path to which to write the generated Jupyter notebook. If omitted, no file is generated and a string encoding the generated notebook is returned.
|
|
|
Description
|
|
•
|
If the first argument worksheet is a string, it is treated as a filename. Otherwise, a worksheet as an XML tree data structure is expected.
|
•
|
If an output file is specified with option outputfile, the notebook is written to outputfile and the number of bytes written to the file is returned. Otherwise the output is a string which encodes the generated notebook.
|
|
|
Notes
|
|
•
|
This command only fully supports worksheets. It may not work properly for Maple documents with tables or components.
|
•
|
Output saved in the original worksheet is not translated to output in the Jupyter workbook. To see output in the Jupyter notebook, execute the notebook using the Maple Kernel for Jupyter.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (4) |
|
|
Compatibility
|
|
•
|
The Worksheet:-WorksheetToJupyter command was introduced in Maple 2022.
|
|
|
|