feature: BEC script integration using VSCode
Feature Summary
A deeper integration of VSCode into BEC Widgets to help users to create and write scripts based on already existing templates. Moreover, users should be able to execute and abort these scripts directly in the GUI.
Problem Description
Writing new scripts can be cumbersome, especially for users without much python experience. Instead of fully relying on visual programming, a simple script interface could be more flexible and approachable.
Proposed Solution
A dedicated widget should be added that lists all user scripts and adds the functionality to execute them. Moreover, an "Add new script" button should be added which can either load a template or simply open a new file in the scripts directory of the user. Upon saving, the widget should be reloading the scripts to ensure that everything stays in sync.
Benefits
Easier scripting! - Without the need to know exactly how to write new scripts or where to write them to.
Alternatives Considered
Visual coding: Could be nice but many scientists know the basics of programming and this could simply slow down the operation and limit their flexibility.
Impact on Existing Functionality
The queue widget should also be able to display running scripts instead of just scans.
Priority
High. I reckon this will be quite helpful for BL commissioning.