libyt Defined Commands¶
There should be no spaces between
%
andlibyt
.
General Commands¶
help
¶
>>> %libyt help
Print help messages.
exit
¶
>>> %libyt exit
Exit interactive mode, and continue the iterative process in simulation.
exit
only works in Interactive Python Prompt.
load
¶
>>> %libyt load <file name>
Load and run file in inline script’s namespace. This runs statements in the file line by line in Python. We can overwrite and update Python functions and objects. Changes will maintain throughout in situ analysis.
All new functions detected in this new loaded script will be set to idle, unless you switch it on using %libyt run
.
export
¶
>>> %libyt export <file name>
Export successfully executed libyt defined commands and Python statements into file <file name>
. File will be overwritten if it already exists. History will be cleared when leaving the analysis.
status
¶
>>> %libyt status
Print status board.
Status Board¶
The status board contains a list of all the Python functions libyt
finds.
These are functions we can control whether to run in next round, and to access error message from the last Python function call by yt_run_Function
/yt_run_FunctionArguments
.
=====================================================================
Inline Function Status Run
---------------------------------------------------------------------
* yt_inline_ProjectionPlot success V
* yt_derived_field_demo idle X
* test_function failed V
=====================================================================
Inline Function: the inline function found by
libyt
.Status: function status in latest Python function call by
yt_run_Function
/yt_run_FunctionArguments
.success
: successfully run the function.failed
: failed to run the function.idle
: the function was set to idle, so it was ignored and did nothing.not run yet
: the function hasn’t been run yet.
Run: whether the function will run automatically in next round.
V
: this function will run automatically in the following in situ analysis.X
: this function will idle in next in situ analysis, even if it is called byyt_run_Function
/yt_run_FunctionArguments
in simulation.