Skip to content

PyTao v0.5.0

Compare
Choose a tag to compare
@ChristopherMayes ChristopherMayes released this 18 Mar 23:16
· 19 commits to master since this release
393717d

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 running pytao with no arguments.
    • IPython is used if available, though the regular Python interpreter will be used as a backup.
  • 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
  • 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 a tao.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 or bokeh)
    • --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 use Tao instead of SubprocessTao
    • --pyquiet to hide the banner when starting pytao
    • --pytao to go straight to Tao mode without initializing a Tao object

Issues

Screenshots

The input transformer:
input transformer

Tao> command-line mode:

tao command-line mode

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

tab completion

What's Changed

  • ENH: pytao CLI rework with tab completion/magics + fixes for TaoInitializationError by @ken-lauer in #131

Full Changelog: v0.4.8...v0.5.0