ExtractCodeSources - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

Jupyter

  

ExtractCodeSources

  

extract code sources from a Jupyter notebook

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

ExtractCodeSources( input, opts )

Parameters

input

-

string

opts

-

(optional) options as described below

Options

• 

source = one of file or string

  

Specifies whether the notebook should be read from a file or a string. The default is file.

Description

• 

ExtractCodeSources(input) extracts code sources from a Jupyter notebook given by input to a list of strings.

Examples

withJupyter:

expr2sinx+y

expr2sinx+y

(1)

nbstringCreateNotebookexpr,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": [ ] } ] }

(2)

ExtractCodeSourcesnbstring,source=string

2*sin(x+y);

(3)

Compatibility

• 

The Jupyter[ExtractCodeSources] 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

 


Download Help Document