PyTao v0.5.0
Changes
-
Bug fix: Tao refused to initialize after the very first initialization attempt failed.
-
Enhanced and reworked the
pytao
command-line interface- If in a directory with a
tao.init
file, PyTao can be started with just runningpytao
with no arguments. - IPython is used if available, though the regular Python interpreter will be used as a backup.
- If in a directory with a
-
For the command-line interface, as in JupyterLab mode,
%tao
and%%tao
magics allow you to send commands directly to the Tao command-line.- For example:
%tao show lat
- For example:
-
An even shorter shortcut is the input transformer.
-
This shortcut can be customized with the
--pyprefix
argument. Every IPython line that starts with this character will turn into atao.cmd()
line. It defaults to the backtick character (i.e., the key typically shared by tilde~
) -
For example, noting the backtick:
In [1]: ` show lat
-
-
A preliminary Tao input mode is also available that behaves like the standard Tao command-line. Tab completion is offered for top-level commands and element names (in certain scenarios). To access it, either use
tao.shell()
or the single backtick shortcut:In [1]: ` Tao> show lat
-
New command-line arguments:
--help
to see PyTao and Tao's command-line options--pyplot
to configure PyTao's plotting backend (mpl
orbokeh
)--pyscript
to run a Python script after Tao initialization--pycommand
to run a Python command after Tao initialization--pylog
set the Python log level--pyno-subprocess
useTao
instead ofSubprocessTao
--pyquiet
to hide the banner when startingpytao
--pytao
to go straight to Tao mode without initializing aTao
object
Issues
Screenshots
Tao>
command-line mode:

Element name tab completion in Tao>
command-line mode:

What's Changed
- ENH:
pytao
CLI rework with tab completion/magics + fixes forTaoInitializationError
by @ken-lauer in #131
Full Changelog: v0.4.8...v0.5.0