IRuntimeSnippets
Agent Runtimes / jupyter/exec/Snippets / IRuntimeSnippets
Interface: IRuntimeSnippets
Defined in: src/jupyter/exec/Snippets.ts:11
Runtime snippets.
Methods
changeCurrentWorkingDirectory()
changeCurrentWorkingDirectory(
path):string
Defined in: src/jupyter/exec/Snippets.ts:18
Code snippet to change the current working directory.
Parameters
path
string
New current directory
Returns
string
The code snippet
getOutputCandidates()
getOutputCandidates(
code):string[]
Defined in: src/jupyter/exec/Snippets.ts:49
Extract output variables candidates by parsing the cell content.
Parameters
code
string
Cell code source
Returns
string[]
The output variable candidates
listVariables()
listVariables():
string
Defined in: src/jupyter/exec/Snippets.ts:25
Code snippet to list the transferable kernel variables.
Returns
string
The code snippet
loadVariables()
loadVariables(
variables):string
Defined in: src/jupyter/exec/Snippets.ts:33
Code snippet to load kernel variables.
Parameters
variables
string
Serialized-JSON dictionary (
Returns
string
The code snippet
saveVariables()
saveVariables(
variables):string
Defined in: src/jupyter/exec/Snippets.ts:41
Code snippet to save kernel variables.
Parameters
variables
string[]
Variable names.
Returns
string
The code snippet