Jupyter
ExtractCodeSources
extract code sources from a Jupyter notebook
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
ExtractCodeSources( input, opts )
input
-
string
opts
(optional) options as described below
source = one of file or string
Specifies whether the notebook should be read from a file or a string. The default is file.
ExtractCodeSources(input) extracts code sources from a Jupyter notebook given by input to a list of strings.
with⁡Jupyter:
expr≔2⁢sin⁡x+y
nbstring≔CreateNotebook⁡expr,target=string
nbstring≔{ "nbformat_minor": 4, "nbformat": 4, "metadata": { "language_info": { "name": "maple", "file_extension": ".mpl", "mimetype": "application/vnd.maple.mpl", "version": "2024" }, "kernelspec": { "display_name": "Maple 2024", "language": "maple", "name": "maple" } }, "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { }, "source": [ "2*sin(x+y);" ], "outputs": [ ] } ] }
ExtractCodeSources⁡nbstring,source=string
2*sin(x+y);
The Jupyter[ExtractCodeSources] command was introduced in Maple 2022.
For more information on Maple 2022 changes, see Updates in Maple 2022.
See Also
Jupyter/package
Maple Kernel for Jupyter
Download Help Document