I managed to put together basic UI and mini-code editor/runner inside LyX. The terminal has been implemented. Other functions are still under active development. I would like to use this thread to ask for inputs on what other functions/UI should be prioritized.
A screenshot of the current prototype is here: https://github.com/jasonsun0310/JupyLyx/blob/master/prototype.jpg